- 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!