MATLAB: Plot of more pictures in axes

pictureplot

Hi, I have a problem, I have 20 axes and more pictures, which I want show in axes. Firstly, it will be visible the first axes with picture and 19 unvisible axes, then 2 axes are visible and 18 are invisible. in case that 20 axes are visible then on the place of 20 axes is picture 21. and on the place of 1. axes is picture 2. Can you help me solve this problem? thanks (I attaches a picture with description of my problem, In picture is smaller amount of axes, just for an example)

Best Answer

You can control the position with subplot
% Display first row of images.
subplot(10, 3, 4);
imshow(image1);
subplot(10, 3, 5);
imshow(image2);
subplot(10, 3, 6);
imshow(image3);
% Display second row of images.
subplot(10, 3, 7);
imshow(image4);
subplot(10, 3, 8);
imshow(image5);
% Display third row of images.
subplot(10, 3, 13);
imshow(image1);
subplot(10, 3, 14);
imshow(image2);
subplot(10, 3, 15);
imshow(image3);
% Display fourth row of images.
subplot(10, 3, 16);
imshow(image4);
subplot(10, 3, 17);
imshow(image5);
subplot(10, 3, 18);
imshow(image6);
% Display fifth row of images.
subplot(10, 3, 22);
imshow(image2);
subplot(10, 3, 23);
imshow(image3);
subplot(10, 3, 24);
imshow(image4);
% Display sixth row of images.
subplot(8, 3, 25);
imshow(image5);
subplot(8, 3, 26);
imshow(image6);
subplot(8, 3, 27);
imshow(image7);
Related Question