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 ?