I am trying to place two images next to each other, "pinning" one image to the other. However, even though the rectangles which define the axes objects are adjacent, the two images are not actually touching.
The following illustrates the issue:
figure;set(gcf,'units','pixels','position',[40 44 1105 546])% testimage :e.g. image of 20X10 pixels in size
testimage = rand(20,10);%set axes to be adjacent
handles.mainaxes = axes('units','pixels','position',[200 200 100 100],'visible','on');handles.secaxes = axes('units','pixels','position',[100 200 100 100],'visible','on');%display image
axes(handles.mainaxes);imshow(testimage);
Best Answer