run a program multiple times and report result
이전 댓글 표시
How to run a MATLAB program multiple times and write outputs to a text file?can we do this in matlab in windows environment? Please help ....... Thanking You, Sita
채택된 답변
추가 답변 (1개)
Walter Roberson
2012년 1월 23일
matlab -r YourFunctionName > OutputFileName
댓글 수: 4
sita
2012년 1월 23일
Walter Roberson
2012년 1월 23일
You put the command in a loop, possibly passing arguments to the command. For example,
matlab -r "YourFunction(%NUM%); quit" > OUT%NUM%.txt
(I do not have much experience in Windows BAT files so the above is not intended to be exact syntax.)
sita
2012년 1월 24일
Walter Roberson
2012년 1월 24일
Sorry, as I indicated, I do not have much experience with Windows BAT files. At home I am running all Mac, and at work I only have access to Linux systems.
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!