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!