1-D PLOTTING

>> x=1:20;>> y=x.*x;                      (square each element)>> plot(x,y)

image

>> pians =3.1416>> x=-pi:0.1:pi;                (0.1 step size)>> y=cos(x);                    (element by elemt cosine)>> plot (x,y)                   (cosine plot)

image

>> z=sin(x);(cosine and sine plot)>> plot(x,y,x,z)`

image

>> print                        (prints to printer)>> print sinwaves.ps -dps       (dumps postscript)