Next: Subplot function
Up: Plotting
Previous: Plotting
>> t=0:0.1:2*pi;
>> y=sin(t);
>> plot(t,y)
Figure 1:
Sin wave example
![\begin{figure}
\center
\epsfig{width=3in,file=sin.eps}
\end{figure}](img2.png) |
>> xlabel('t')
>> ylabel('y')
>> title('Sample Plot')
Figure 2:
Adding a title to a figure
![\begin{figure}
\center
\epsfig{width=3in,file=sin2.eps}
\end{figure}](img3.png) |
Copyright © 2004, Aly El-Osery
Last Modified 2005-10-27