How do I rename a file programmatically in MATLAB 7.10 (R2010a)?

14 visualizaciones (últimos 30 días)
I need to rename a file in my current folder from MATLAB, but the RENAME function works only with FTP server.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 19 de En. de 2012
You can rename a file programmatically from MATLAB using the MOVEFILE function. As an example, to rename "myfunction.m" to "oldfunction.m" in the current folder, you can use the following command:
movefile('myfunction.m','oldfunction.m');

Más respuestas (0)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by