Rename a bunch of files in a folder

3 次查看(过去 30 天)
Pedro
Pedro 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 CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by