Problems with Push Buttons

조회 수: 5 (최근 30일)
Trevor Zane Simko
Trevor Zane Simko 2015년 5월 8일
답변: Walter Roberson 2015년 5월 8일
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!

답변 (2개)

lei kai
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.
  댓글 수: 1
Trevor Zane Simko
Trevor Zane Simko 2015년 5월 8일
Could you expand on this? Not very familair with this.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2015년 5월 8일

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by