Run a script multiple times and save outputs
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tomás
am 19 Okt. 2019
Kommentiert: Gustavo Rojas-Matute
am 6 Aug. 2020
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 Kommentare
Akzeptierte Antwort
Stephan
am 19 Okt. 2019
Bearbeitet: Stephan
am 19 Okt. 2019
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 Kommentare
Gustavo Rojas-Matute
am 6 Aug. 2020
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'.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!