stop running script after close figure

조회 수: 10 (최근 30일)
Eden Eden
Eden Eden 2016년 6월 21일
댓글: Eden Eden 2016년 6월 21일
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일
Hint: get the figure handle, and check it with ishghandle. This is easy to do in a loop.

추가 답변 (1개)

KSSV
KSSV 2016년 6월 21일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by