How to do this with different axes in a GUI, not with subplot.
figureax1 = subplot(2,1,1);RGB = imread('peppers.png'); I = rgb2gray(RGB); imshow(I);ax2 = subplot(2,1,2);RGB = imread('peppers.png'); imshow(RGB);linkaxes([ax1,ax2],'xy')
axesguiImage Processing Toolboxlinkaxeszoom
figureax1 = subplot(2,1,1);RGB = imread('peppers.png'); I = rgb2gray(RGB); imshow(I);ax2 = subplot(2,1,2);RGB = imread('peppers.png'); imshow(RGB);linkaxes([ax1,ax2],'xy')
Best Answer