Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: problem exit for loop in GUI
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Martin

Posts: 42
Registered: 4/7/10
problem exit for loop in GUI
Posted: Apr 20, 2011 4:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

There is a problem exiting a loop in a GUI in a clean way.
I know there are a lot of threads about this but I could not find a solution.

In my loop an animation is executed using drawnow.
When I break the loop using a guidata variable (or userdata as well) the loop is stopped correctly and the animation stops.

When the animation is executed a second time it executes as well but at the end I get an error while setting plot properties.

While debugging I saw, that when the loop was stopped the first time, there is still the transparent debugging arrow pointing at drawnow. I think there is the reason for the error, so how can I avoid this and end the loop definitely.

Thanks for any suggestions
martin



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.