How to plot while loop iteration in same figure
3 次查看(过去 30 天)
显示 更早的评论
MT= [m, n] matrix
%%%%%%%%%%%%%%%%%%%%%%%%%%%
while cidx == 1
i=i+4;
Z = MT (1: i, :);
[idx,cidx] = clusterer(Z);
plot(clusterer,Z,idx);
End
%%%%%
with cidx = 11111111111111111111111111111 2222
Knowing that the program gives me a new figure each time I do an iteration cidx=1 (10 figures for 10 iterations) so how I can plot the figures in the same one ?
Thanks in advance
0 个评论
回答(1 个)
Cris LaPierre
2021-4-3
2 个评论
Cris LaPierre
2021-4-3
What did you try? It'll work if done correctly. Have you gone through ch 9 of the onramp yet?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!