Change file extension from .wav to .res
6 次查看(过去 30 天)
显示 更早的评论
Tharini
2011-8-19
Hi. My question might sound naive but can u please explain me in detail as to how to change the extension of a file from .wav to .res using MATLAB. P.S. all my files are stored in different names in the same folder
2 个评论
Daniel Shub
2011-8-19
Do you want to change the extension or change the format? Renaming a file is very different from converting a file.
回答(4 个)
Chaowei Chen
2011-8-21
Supposing you just want to rename the file, do this
! ren temp.wav temp.res
18 个评论
Chaowei Chen
2011-8-21
Thanks for the note. I didn't aware that.
However, in Windows, ren is faster than movefile, which copies and deletes files and therefore may be time consuming. My experience. :)
Walter Roberson
2011-8-22
Can Windows rename be used between different file systems? Can it be used if one of the filesystems is on a networked drive?
The unix-type utility corresponding to rename is "mv". It too is usually much faster than movefile() . The MATLAB definition of movefile() has some odd semantics about the file permissions that result that make the simple and fast "mv" not an exact equivalent. I have not yet been able to come up with a situation in which the movefile() permission semantics would be the desired ones, but I _guess_ there must have been a Good Reason somewhere along the way...
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Jan
2011-8-23
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux):
http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
Daniel Shub
2011-8-22
For renaming you should be able to extrapolate from the second example at:
you can use either the MATLAB movefile command or use the ! to invoke a system command to use your OS built in move/copy/rename command.
Jan
2011-8-23
This was thought as a comment to Walter's answer, but the "Save" button of the comments is currently not working - on my computer.
This is a C-Mex, which is about 20 times faster than MATLAB's movefile under Windows (I do not have a measurement under Linux): http://www.mathworks.com/matlabcentral/fileexchange/29569-filerename
23 个评论
Arturo Moncada-Torres
2011-8-23
It is not only in your computer, and it is not only with answers :( . I am getting many errors and not seeing the most recent questions.
Arturo Moncada-Torres
2011-8-23
It is not only in your computer, and it is not only with answers :( . I am getting many errors and not seeing the most recent questions.
Arturo Moncada-Torres
2011-8-23
It is not only in your computer, and it is not only with answers :( . I am getting many errors and not seeing the most recent questions.
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
Jan
2011-8-23
@Arturo: It seems liek you have tried it three times?! ;-)
I'm not able to create a question also. I've sent a message to fiels@mathworks already.
Now I'm trying it with an alternative browser...
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Search Path 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)