Borrar filtros
Borrar filtros

Renaming file name with variable.

1 visualización (últimos 30 días)
ZK
ZK el 16 de En. de 2013
Hi i would like to rename or save as new file, generated by:
fid = fopen('TempFile.htm','w');
In the name of new file I would like to use variable
e = 20120319 (saved as a char)
so the new file should look like this
20120319.htm
Do you have any ideas?
Thank You

Respuesta aceptada

Pedro Villena
Pedro Villena el 16 de En. de 2013
e = '20120319';
copyfile('TempFile.htm',[e '.htm']);

Más respuestas (0)

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by