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!

 Respuesta aceptada

Stephen23
Stephen23 el 21 de Jun. de 2016

0 votos

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

Más respuestas (1)

KSSV
KSSV el 21 de Jun. de 2016

0 votos

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 comentario

Eden Eden
Eden Eden el 21 de Jun. de 2016
Editada: Eden Eden el 21 de Jun. de 2016
thanks, I meant only when I'm closing the figure window the script will stop. There is any way of doing it?

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Jun. de 2016

Comentada:

el 21 de Jun. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by