Change file extension from .wav to .res

조회 수: 6 (최근 30일)
Tharini
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
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.
Tharini
Tharini 2011년 8월 22일
i want to change the extension.

댓글을 달려면 로그인하십시오.

답변 (4개)

Walter Roberson
Walter Roberson 2011년 8월 21일
The MATLAB command to rename files is movefile()

Chaowei Chen
Chaowei Chen 2011년 8월 21일
Supposing you just want to rename the file, do this
! ren temp.wav temp.res
  댓글 수: 18
Jan
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
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
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
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
Jan
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
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 CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by