フィルターのクリア

Change the name of csv file and save into a folder.

11 ビュー (過去 30 日間)
Jake
Jake 2015 年 6 月 23 日
コメント済み: Jan 2015 年 7 月 4 日
Hi MATLAB experts,
How can I change the name of csv file and save the name changed? After that, I'd like to move it to a folder..
For instance, I have csv file here, and want to change the name to 'DATA' from 'Value' as follows:
fileList = Value.csv
And move and save this changed file to a folder ('C:\myfolder\')..
Thanks for any help you can provide in advance!!
Best Regards, Jake

採用された回答

Stephen23
Stephen23 2015 年 6 月 23 日
編集済み: Stephen23 2015 年 6 月 23 日
To rename a file use movefile (yes, really!):
movefile('oldname.csv','newname.csv')
To copy a file to another directory, use copyfile
copyfile('newname.m','D:/work/Projects/')
Please read the documentation carefully for both of those functions. Note that copyfile can also be used to rename a file or folder, and that the filenames can include relative-path or full-path if the file is not located in the current directory.
  4 件のコメント
Image Analyst
Image Analyst 2015 年 7 月 4 日
Stephen - I accepted it (for Jake) and voted for it.
Jan
Jan 2015 年 7 月 4 日
@Image Analyst: The answer has not been accepted. I've done this for you, because you tried to do this for Jake.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by