next up previous contents
Next: Subplot function Up: Plotting Previous: Plotting

Plot function

>> 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}

>> 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}



Copyright © 2004, Aly El-Osery
Last Modified 2005-10-27