My interest is to display image in axes, I've 2 GUI's input_window and fig5.
In my former GUI I've used one axes to display image using uigetfile
,
axes(handles.axes1);
imshow(fname);
Now by pressing pushbutton
in 1st GUI it switches to fig5 GUI, where I've used so many axes to display multiple images, also i want to display fname
image in one axes and it should automatically get displayed in fig5 GUI. For this I've used same above codes in Fig5_OpeningFcn
axes(handles.axes1);
imshow(fname);
I'm getting error like Undefined function or variable 'fname'
.
please help me how to pass variables between GUI's