% ex_plot_fig.m
% PURPOSE
% Example of how to plot a figure with basic plotting
% commands.
t=linspace(0,2*pi,20);
y1=sin(t);
y2=cos(t);
y3=exp(-t);
% Plot figure
plot(t,y1,'b-',t,y2,'b-.',t,y3,'b--'), grid
title('Plotting y_1=sin(t), y_2=cos(t), y_3=e^{-t} \forall 0 \leq t \leq 2*\pi')
xlabel('Time 0 \leq t \leq 2*\pi')
ylabel('y_1, y_2, y_3')

legend('y_1=sin(t)','y_2=cos(t)','y_3=e^{-t}')
axis([0 2*pi -1 1])


