Problems with Push Buttons
5 次查看(过去 30 天)
显示 更早的评论
I have a GUI with a few push buttons. Under the function of each push button I have some variables set (A=1 B=2)
In my to open Push Button Interface, I use:
openfig('Name_of_Figure','reuse');
uiwait(Name_of_Figure)
Everything works fine. When I click the pushbutton, my variabes show up in the command window (A=2 B=2)
However, they do not appear in my workspace. So I can't use the variables further in my script. Pleae help!
0 个评论
回答(2 个)
lei kai
2015-5-8
GUI works with indenpendence space,so your variables will not share with your work space.you need to export or save your variables.when you use ,you can import or load your data.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!