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: 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 ]
Giorgio

Posts: 5
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

Hi,

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]

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