MatLab function plot plots given ordered pairs
(t(1),y(1)), (t(2),y(2)),..., where t(i) and y(i) are stored in
vectors t and y. For example, copy and paste the following 4
commands in MatLab to see how plot works.
t=1:.05:4*pi;
y=sin(t).^2+sqrt(t).*exp(-t);
plot(t,y,'--')
title('y=sin(t)^2+sqrt(t)*exp(-t)')
If you also type t and y, you will see these two are row vectors.
'--' in plot is for the line-type. Other line types and
point types are:
line-type: -, --, :, -.
point-type: ., +, *, o, x
Type help plot to learn more about plot.