How to prevent a function from returning?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2012 年 9 月 9 日
See waitfor() and uiwait(); also see the WindowStyle property of figures
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!