The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]
Nasser Abbasi

Posts: 6,677
Registered: 2/7/05
Re: pass a value from a GUI to another
Posted: Jun 23, 2013 9:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 6/23/2013 7:22 PM, yang wrote:
> 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.

why are you using 0 for object handle?

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.