run a program multiple times and report result
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 23 de En. de 2012
matlab -r YourFunctionName > OutputFileName
4 comentarios
sita
el 23 de En. de 2012
Walter Roberson
el 23 de En. de 2012
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
el 24 de En. de 2012
Walter Roberson
el 24 de En. de 2012
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.
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!