Hello everyone, i am doing a gui in which i ll load 3 images into 3 axes. Now i want exactly those images to be loaded into the 3 axes in the next gui when i press a pushbutton . How do i go about it? Please do help me
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jeevan
el 4 de Mayo de 2014
Respondida: Image Analyst
el 4 de Mayo de 2014
[File, folders] = uigetfile('*.*', 'MultiSelect', 'on') filename1=strcat(folders,File{1}) filename2=strcat(folders,File{2}) filename3=strcat(folders,File{3})
image1=imread(filename1); axes(handles.axes2) imshow(image1) handles.img=image1; guidata(hObject, handles);
image2=imread(filename2); axes(handles.axes3) imshow(image2) handles.img=image2; guidata(hObject, handles);
image3=imread(filename3); axes(handles.axes1) imshow(image3) handles.img=image3; guidata(hObject, handles);
How can i load these 3 images in Main.m gui to Sub.m when i press pushbutton in sub.m?
0 comentarios
Respuesta aceptada
Image Analyst
el 4 de Mayo de 2014
It's not easy. See the FAQ : http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!