- 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 (최근 30일)
이전 댓글 표시
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
채택된 답변
KALYAN ACHARJYA
2022년 12월 11일
You can do that in multiple ways, easiest way
for i=1...
plot_data{i}=
end
plot(plot_data{randi(length(plot_data))});
HTH
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!