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

 採用された回答

Pedro Villena
Pedro Villena 2013 年 1 月 16 日

0 投票

e = '20120319';
copyfile('TempFile.htm',[e '.htm']);

1 件のコメント

ZK
ZK 2013 年 1 月 16 日
Thank You, works perfect.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by