Batch rename in matlab

1 回表示 (過去 30 日間)
Liran Oren
Liran Oren 2011 年 3 月 30 日
I have a set of image files that cannot be open in matlab (i.e. B00001.im7, B00002.im7…, B02000.im7). The images correspond to a signal from a microphone that is being read as a data file into matlab. The signal is processed and determines which images should be kept (say, B00039.im7, B00040.im7, B00122im7,…, etc.) and which ones can be discarded. It then needs to rename the files that were kept (i.e. B00039.im7 --> B00001.im7, B00040.im7 --> B00002.im7, etc.). Any suggestions how to do this in matlab? I have mass amounts of images, so doing this manually isn’t feasible… Thanks!

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 3 月 30 日
See the FAQ on handling multiple files. The other hint is movefile()

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by