- Save the all data points in cell array { }
- Once the plots done and exited from for loop
- Plot any random cell elements from saved cell array.
Taking one figure out of a thousand figures
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
SNM Nima
am 11 Dez. 2022
Kommentiert: SNM Nima
am 11 Dez. 2022
I have a for loop in my code and this loop repeats a thousand times and each time gives a figure with a plot.
Is there a way to take one figure from the thousand drawn figures and put it back on another plot after the loop is finished?
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 11 Dez. 2022
You can do that in multiple ways, easiest way
for i=1...
plot_data{i}=
end
plot(plot_data{randi(length(plot_data))});
HTH
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots 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!