Plotting in Multiple Figures inside Loop
显示 更早的评论
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 个评论
Monowar Hossain
2022-8-17
Here, what is the point of looping ?
采纳的回答
更多回答(1 个)
Sean de Wolski
2011-7-14
0 个投票
Yes; build you data1-3 vectors inside the loop and then plot once after it.
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!