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!