Info
此问题已关闭。 请重新打开它进行编辑或回答。
how can I make changes on files in a folder?
1 次查看(过去 30 天)
显示 更早的评论
I have a folder with for example 20 files in .fig format and diffrent names. I want to do some changes to every file. How can I let matlab check every file, and then when it's format is .fig ,make the changes and then go to the next file?
thanks
0 个评论
回答(1 个)
dpb
2014-1-9
Use dir on the folder for and appropriate wild card ('*.fig', maybe?) to get the list of files in the returned directory structure, then loop over it.
There are examples at the FAQ
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!