The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: problem exit for loop in GUI
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 43
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

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.