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 次查看(过去 30 天)
显示 更早的评论
[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 个评论
采纳的回答
Image Analyst
2014-5-4
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!