File Exchange Pick of the Week

Our best user submissions

MATLAB for File Management

Jiro's pick this week is a set of functions for operating on files and folders by Frederic Moisy.

I use MATLAB for analyzing data and creating tools for data analysis. But I like MATLAB so much that I use it for things other than regular work stuff. That's why when I came across Frederic's entry, it made me smile. This would certainly help me manage my files on my computer. With his collection of files, you can easily navigate to folders, manage folders, and view/manipulate file names.

To get the file names of my image files in "image1" and "image2",


To rename my image files by replacing certain text patterns,

cd image1
renamefile('*.jpg', 'im', 'newIm');
cd ../image2
renamefile('*.jpg', 'im', 'oldIm');
cd ..

One suggestion I have is for "renamefile" to work with multiple folders at once. But it's pretty useful as it is!


Let us know what you think here.

Published with MATLAB® 7.10

  • print
  • send email


要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。