I want to load two different images when i press two different push button and show them on 2 axis can anyone help

1 view (last 30 days)
axes(handles.axes1);
handles.output = hObject;
[fn1 pn1] = uigetfile('*.jpg','select image');
if fn1 ~= 0
handles.I1 = imread(fullfile(pn1,fn1));
imshow(handles.I1);
end
guidata(hObject, handles);
How can i do it twice?

Answers (1)

Image Analyst
Image Analyst on 10 Jan 2015
Just have two push buttons and two axes. Then in the pushbutton callback specify the axes you want it to appear in.
axes(handles.axes1); % or handles.axes2 - whatever you want.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!