Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how can I make changes on files in a folder?

1 Ansicht (letzte 30 Tage)
Mohammad
Mohammad am 9 Jan. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

dpb
dpb am 9 Jan. 2014
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

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by