subplot (an example)

In the assign2_programs program folder, open the file called lab3plot.m. This file produces four separate plots, each in its own Figure window. The plots use MATLAB's default colors and line styles. Your goal is to rewrite the file so that it produces one Figure window which contains all four plots, as shown below.

Notes:

  1. First, create one Figure with the (plain-looking) subplots
    (check out MATLAB's help on subplot)
    subplot(2,2,1) subplot(2,2,2)
    subplot(2,2,3) subplot(2,2,4)
  2. Experiment with save and load
    Try this:
  3. Embellish with custom colors/fonts/etc. The plots above are just samples; you can make yours look as you choose.

Back to Lab 3 page