Problems with Push Buttons

4 views (last 30 days)
Trevor Zane Simko
Trevor Zane Simko on 8 May 2015
Answered: Walter Roberson on 8 May 2015
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!

Answers (2)

lei kai
lei kai on 8 May 2015
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.
  1 Comment
Trevor Zane Simko
Trevor Zane Simko on 8 May 2015
Could you expand on this? Not very familair with this.

Sign in to comment.


Walter Roberson
Walter Roberson on 8 May 2015

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!