How do I set one image into multiple axes?
Show older comments
Hi everyone. I need some help to add one image into multiple axes.
I want my program to be something like on this picture:

When I select open image menu, it will browse for a picture. Then, I want that one picture to be displayed on those three axes area (Method A, Method B, and Proposed Method).
Here's my current code. PS: Please don't laugh at my code because i'm still a newbie here.
function open_Callback(hObject, eventdata, handles)
% hObject handle to open (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
project=guidata(gcbo);
[filename,directory]=uigetfile({'*.bmp';'*.*'},'Open Image');
I=imread(strcat(directory,filename));
I1=imread(strcat(directory,filename));
I2=imread(strcat(directory,filename));
set(project.figure1,'CurrentAxes',project.axes1);
set(imshow(I));
set(project.axes1,'Userdata',I);
set(project.figure1,'Userdata',I);
set(project.figure3,'CurrentAxes',project.axes3);
set(imshow(I1));
set(project.axes3,'Userdata',I1);
set(project.figure3,'Userdata',I1);
set(project.figure4,'CurrentAxes',project.axes4);
set(imshow(I2));
set(project.axes4,'Userdata',I2);
set(project.figure4,'Userdata',I2);
Can i get some help guys? Any advice would be highly appreciated.
Accepted Answer
More Answers (0)
Categories
Find more on Axis Labels 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!