필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how can I make changes on files in a folder?

조회 수: 1 (최근 30일)
Mohammad
Mohammad 2014년 1월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

dpb
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

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by