Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: pass a value from a GUI to another
Replies: 1   Last Post: Jun 23, 2013 9:36 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
yang

Posts: 1
Registered: 6/23/13
pass a value from a GUI to another
Posted: Jun 23, 2013 8:22 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On a GUI, I have:
1. a 'Edit Text' space for input a certain value;
2. a 'Pushbutton' to shows the input value.

My code (only show the relevant parts):
function edit1_Callback(hObject, eventdata, handles)
setappdata(0,'A',get(hObject.edit1,'value'));

function pushbutton1_Callback(hObject, eventdata, handles)
a= getappdata(0,'A')

When I press the pushbotton, why it didn't show the input value, but a '[]'?
Please correct the code if possible. I only want to get it run.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.