Renaming file name with variable.

4 vues (au cours des 30 derniers jours)
ZK
ZK le 16 Jan 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

Réponse acceptée

Pedro Villena
Pedro Villena le 16 Jan 2013
e = '20120319';
copyfile('TempFile.htm',[e '.htm']);
  1 commentaire
ZK
ZK le 16 Jan 2013
Thank You, works perfect.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by