- Add an “Axes” control on GUI. Change its tag to “axes_img”. %% Tag in matlab GUI programming is used as function of name.
- Change property of "Axes” visible to “off” to avoid it appearing like an axes in the GUI before image is loaded.
- In some functions, like a button clicked, add code similar as below
axes(handles.axes_img); % use the axes you put on GUI imshow('filename'); % display the image
Then an image is loaded where you put the axes control when you click the button.