close figure and stop loop
古いコメントを表示
hi, first of all i am sorry for my english.
my program:
f=figure(1);
while 1;
bla bla ...
end
i try to close figure 1 but re-open itself.
and i try this in while:
h = findobj('type','figure');
n = length(h);
if(n==0)
break;
end
but not work it!
please help me.
回答 (1 件)
Azzi Abdelmalek
2016 年 4 月 25 日
break will not close a figure, use
close(1)
2 件のコメント
Azzi Abdelmalek
2016 年 4 月 25 日
What is this?
カテゴリ
ヘルプ センター および File Exchange で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!