stop running script after close figure

Hi, How can I stop running script after I'm closing figure? (When I'm closing a figure it is reopened (using loop)). *Not mean to 'ctrl+C'. Thanks!

 採用された回答

Stephen23
Stephen23 2016 年 6 月 21 日

0 投票

Hint: get the figure handle, and check it with ishghandle. This is easy to do in a loop.

その他の回答 (1 件)

KSSV
KSSV 2016 年 6 月 21 日

0 投票

You can type 'break' where you want to stop the code in the file. The code executes till the line before break and then exits.

1 件のコメント

Eden Eden
Eden Eden 2016 年 6 月 21 日
編集済み: Eden Eden 2016 年 6 月 21 日
thanks, I meant only when I'm closing the figure window the script will stop. There is any way of doing it?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

質問済み:

2016 年 6 月 21 日

コメント済み:

2016 年 6 月 21 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by