how to interrupt a while loop??
Show older comments
in GUI, I try to interrupt a while loop...let's say.. a program initiate while loop when button A are pushed, and i want to stop/interupt the loop by pushing button B.. any idea????
Accepted Answer
More Answers (1)
Geoff
on 6 Jun 2012
0 votes
In your GUI, set some user data to your GUI handle.
In your loop, check this data and break accordingly.
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!