how to forbid several calls to the same function
Mostrar comentarios más antiguos
I have a function, myfun, which generates a user interface with several graphic objects. So, when I run myfun, I have still the possibility to enter commands in the MATLAB command window. How can I test if myfun is already running, in order to forbid a new call to myfun in the MATLAB command window ?
Respuesta aceptada
Más respuestas (2)
Sean de Wolski
el 12 de Dic. de 2011
One way would be to save the figure and then use the openfig, with the reuse option.
doc openfig
1 comentario
Jan
el 12 de Dic. de 2011
The saved figure might not be compatible to older oder future versions of Matlab.
Christophe
el 12 de Dic. de 2011
0 votos
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!