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: share a handle in a GUI
Replies: 1   Last Post: Aug 4, 2014 1:56 PM

Advanced Search

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

Posts: 6
Registered: 12/13/13
share a handle in a GUI
Posted: Aug 2, 2014 7:51 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I know that this is a common problem and I have read a lot of article about it but I can't figure out the solution.

In the OpeningFcn function i "imread" two images and then I get their handle because later I need to recall these images and make them Visible or not.
For example, the first handle is called "img", so:

img=image(x,y,'myimage') % and now I have my handle
handles.img=img; %I add the handle to the handles

guidata(hObject,handles) %I have tried all combinations but the "img" handle doesn't save

I don't know how to solve my problem, is the syntax right ?

Thanks !!

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.