Hi,
I have two axes on my gui fig.
when i push a button i want to load two images for each axes. so i tried this.
% --- Executes on button press in Insert.
function pushbutton4_Callback(hObject, eventdata, handles)% hObject handle to pushbutton4 (see GCBO)
% Invoca duas fotos
% % FOTO 1
[filename,pathname] = uigetfile({'*.jpg';'*.tif';'*.*'}, 'Fotografia Direita');fich1 = fullfile(pathname,filename);%
% % FOTO 2
[filename,pathname] = uigetfile({'*.jpg';'*.tif';'*.*'}, 'Fotografia Esquerda');fich2 = fullfile(pathname,filename);if(exist(fich1) && exist(fich2))D=imread(fich1);E=imread(fich2);imshow(D,'Parent',axes1);imshow(E,'Parent',axes2);endguidata(hObject, handles);
How can i use this 'Parent' parameter, to make corresponding an image to an specific axes?
Best Answer