how to interrupt a while loop??
Afficher commentaires plus anciens
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????
Réponse acceptée
Plus de réponses (1)
Geoff
le 6 Juin 2012
0 votes
In your GUI, set some user data to your GUI handle.
In your loop, check this data and break accordingly.
Catégories
En savoir plus sur Interactive Control and Callbacks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!