So basically I have a gui, with a button press. On button press it runs a script that has a startBackground command in it. But before the figure from the script can even pop up, I get an error stating that a session was closed while it was running. However, I want the script to run until the user closes the figure. Basically it is a live figure, showing live inputed data during a certain range.
How do I do this?
After I run the script I can extend the time the script is running by putting a pause command, but I want the script to continue for an indeterminate amount of time, basically until the user closes it.
3 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/387531-how-do-i-get-a-script-to-wait-until-a-figure-is-closed#comment_544017
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/387531-how-do-i-get-a-script-to-wait-until-a-figure-is-closed#comment_544017
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/387531-how-do-i-get-a-script-to-wait-until-a-figure-is-closed#comment_544021
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/387531-how-do-i-get-a-script-to-wait-until-a-figure-is-closed#comment_544021
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/387531-how-do-i-get-a-script-to-wait-until-a-figure-is-closed#comment_544042
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/387531-how-do-i-get-a-script-to-wait-until-a-figure-is-closed#comment_544042
Sign in to comment.