Here’s a small example:
If I wanted to make a window that has 4 plots, 2 plots in each row 2 rows, here’s what I’d do
Do subplot(221) Specify that we want to work on the top left corner
Next, code the syntax to plot normally. The plot will appear on the top leftcorner
Do subplot(222) Specify that we want to work on the top rightcorner
Next, code the syntax to plot normally. The plot will appear on the top rightcorner
Do subplot(223) Specify that we want to work on the bottom leftcorner
Next, code the syntax to plot normally. The plot will appear on the bottom leftcorner
Do subplot(224) Specify that we want to work on the bottom rightcorner
Next, code the syntax to plot normally. The plot will appear on the bottomright corner