Run a script multiple times and save outputs
5 次查看(过去 30 天)
显示 更早的评论
I have a script that at the end outputs a 1x5 array named 'g' with 5 values. each time i run the script, the values of 'g' will change. what can i use to run my script say, 50 times, and obtain a 50x5 array of all my different runs of 'g'?
0 个评论
采纳的回答
Stephan
2019-10-19
编辑:Stephan
2019-10-19
Write a function or a second script which calls your script in a for loop and save the results in a new line of a result matrix for every run of your loop.
3 个评论
Gustavo Rojas-Matute
2020-8-6
Hi Tomas, I am trying to do the same you did but when I try to fill the matrix: (c:,) it says:
Unrecognized function or variable 'c'.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!