executing a function in multiple directories
이전 댓글 표시
I have a function which i would like to execute in multiple directories. Because it takes a long time to finish executing in each directory I'd like to automate this to run overnight.
Please point me in the right direction.
댓글 수: 1
Sven
2011년 11월 10일
Do you mean that you want yourfunction() to execute first on "c:/directory1", then "c:/directory2", then "c:/directory3", etc?
If so, I think you can write a short script that *calls* yourfunction() from different directories. For example:
cd 'c:/directory2'
yourfunction()
... etc.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!