Plotting in Multiple Figures inside Loop
Ältere Kommentare anzeigen
I'm trying to plot data on two different figures within a loop. When I do this, the computer flashes between the two figures in each iteration, which slows down the program considerably. Is there a way to hide the figures until the loop is finished?
for i = 1:100
...
figure(1)
plot(data1, data2)
figure(2)
plot(data1, data3)
end
1 Kommentar
Monowar Hossain
am 17 Aug. 2022
Here, what is the point of looping ?
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 14 Jul. 2011
0 Stimmen
Yes; build you data1-3 vectors inside the loop and then plot once after it.
Kategorien
Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!