How to move all the image files in a folder to a sub-folder without user intervention?

2 次查看(过去 30 天)
I have written a script that generates different plot figures for corresponding data in excel spreadsheets. At the end, I need to move all these files into a sub-folder whose name is provided by the user with a GUI Textbox Input, as a string that is read by mkdir function. Can anyone please help me with this?

回答(1 个)

Image Analyst
Image Analyst 2014-9-12
Use the FAQ http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F and movefile(). Let us know if you can't figure it out.

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by