Change file extension from .wav to .res

6 visualizaciones (últimos 30 días)
Tharini
Tharini el 19 de Ag. de 2011
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 comentarios
Daniel Shub
Daniel Shub el 19 de Ag. de 2011
Do you want to change the extension or change the format? Renaming a file is very different from converting a file.
Tharini
Tharini el 22 de Ag. de 2011
i want to change the extension.

Iniciar sesión para comentar.

Respuestas (4)

Walter Roberson
Walter Roberson el 21 de Ag. de 2011
The MATLAB command to rename files is movefile()

Chaowei Chen
Chaowei Chen el 21 de Ag. de 2011
Supposing you just want to rename the file, do this
! ren temp.wav temp.res
  18 comentarios
Jan
Jan el 23 de Ag. de 2011
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 el 23 de Ag. de 2011
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

Iniciar sesión para comentar.


Daniel Shub
Daniel Shub el 22 de Ag. de 2011
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 el 23 de Ag. de 2011
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 comentarios
Jan
Jan el 23 de Ag. de 2011
@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 el 23 de Ag. de 2011
@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...

Iniciar sesión para comentar.

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by