In this example we are going to plot multiple lines onto a single axis. Additionally, we choose a different appearance for the lines and create a legend.
% create sample data
x = linspace(-2,2,100); % 100 linearly spaced points from -2 to 2
y1 = x.^2;
y2 = 2*x.^2;
y3 = 4*x.^2;
...