Pass input data obtained from GUI to .m
古いコメントを表示
Hello!!!
I am very new to GUIDE. I built GUI and intend to pass variable from GUI to .m for calculation. I can get the parameter from GUI as global variable already but those parameters cannot be used after that. Can anyone help me? I attached two files include .m and GUI.
5 件のコメント
Walter Roberson
2020 年 1 月 27 日
Stephen23
2020 年 1 月 27 日
As Rik wrote, it is best to avoid GUIDE and write your own GUI code.
If you must use GUIDE, then follow these instructions:
Danupon Subanapong
2020 年 1 月 30 日
Stephen23
2020 年 1 月 31 日
Rik's answer below is a neat and effective approach by defining a simple class.
Another simple alternative uses nested functions, for example my FEX submssion iregexp:
Note the waitfor is commented out in the file, uncomment it to return control when the GUI is closed.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!