How to prevent a function from returning?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a script that executes a function that contains a gui. I'd like for the user to input some data, and when they hit a "close" button, that function returns a value. The problem is that the gui function, after loading all the uicontrols, returns automatically. How can I prevent the function from returning until the user hits a "close" button that contains "return." OR, is there a better way to approach the problem? Thanks.
0 commentaires
Réponse acceptée
Walter Roberson
le 9 Sep 2012
See waitfor() and uiwait(); also see the WindowStyle property of figures
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Objects dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!