Run a script multiple times and save outputs
1 回表示 (過去 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 で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!