How to use a figure as 'if condition'?!
4 ビュー (過去 30 日間)
古いコメントを表示
sajjad hosseinifard
2018 年 7 月 16 日
コメント済み: Fangjun Jiang
2018 年 7 月 16 日
I's using an m file to plot some data, online. I want to make an 'if condition', when I close the figure that is plotting my data manually!! Shortly, How could I Initialize a loop by closing a specific figure?!(as I close the figure the loop being started)
0 件のコメント
採用された回答
Fangjun Jiang
2018 年 7 月 16 日
Would this work?
f1=figure;
...
status=close(f1);
You can then check the "status" using "if"
2 件のコメント
Fangjun Jiang
2018 年 7 月 16 日
a simple example
f1=figure;
set(f1,'DeleteFcn','for k=1:10; disp(k);end')
then close the figure manually
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!