MATLAB: Trying to have two figures on the same screen

figure

Hi, I am writing a program that displays multiple plots in different figures where the user has to select what figure they want to look at. I am trying to have two of these show up split screen. How would I do this. I provided a snip of the code and the what I want t happen to the plots.show up split screen. How would I do this. I provided a snip of the code and the what I want t happen to the plots.
so Basically I would like these two figures to be displayedin figure 9 half and half

Best Answer

figure(9)
subplot(2,2,[1 3])
%your fig 7 code
subplot(2,2,2)
%fig8 sub1
subplot(2,2,4)
%fig8 sub2