Matlab - window window layout

Is it possible to build a graph window with 8 figures, located as follows?

  • six of them are located in a 2 x 3 grid;
  • the remaining 2, the position in the grid 1 x 2 under the grid 2 x 3;

I cannot use the subplot function, because for cam 6 I would have subplot(2, 3, x), and for the last 2 I would have subplot(1, 2, x).

+5
source share
2 answers

subplot . , , , , .

figure(1)
subplot(3,3,1)
subplot(3,3,2)
subplot(3,3,3)
subplot(3,3,4)
subplot(3,3,5)
subplot(3,3,6)
subplot(3,3,7.5)
subplot(3,3,8.5)

enter image description here

+11

:

figure
subplot(3,3,1), text(0.5,0.5,'1', 'FontSize',20)
subplot(3,3,2), text(0.5,0.5,'2', 'FontSize',20)
subplot(3,3,3), text(0.5,0.5,'3', 'FontSize',20)
subplot(3,3,4), text(0.5,0.5,'4', 'FontSize',20)
subplot(3,3,5), text(0.5,0.5,'5', 'FontSize',20)
subplot(3,3,6), text(0.5,0.5,'6', 'FontSize',20)
subplot(3,2,5), text(0.5,0.5,'7', 'FontSize',20)
subplot(3,2,6), text(0.5,0.5,'8', 'FontSize',20)

enter image description here

+7

All Articles