Rename a bunch of files in a folder

4 ビュー (過去 30 日間)
Pedro
Pedro 2014 年 7 月 31 日
回答済み: Image Analyst 2014 年 7 月 31 日
Hi, I have more than 300 files in each folder and I would like to rename the files at once. I am new to matlab programming and got stuck here. The original file names is something like this "filename20090101" and i would like it to be something like "filename_2009_01_01" those are daily files so after the first month it will be "filename_2009_02_01" and so on. Any help would be appreciated. Thank You!

回答 (1 件)

Image Analyst
Image Analyst 2014 年 7 月 31 日
In the loop, use the movefile() function to rename the files.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by