% graphics  example Driscoll, p. 52 -
figure(1)
ezplot(@(t) exp(-t/5).*sin(t), [0 6*pi])
xlabel('time \tau')
ylabel('amplitude \zeta')
title('Damped oscillator')
legend('e^{-\tau/5} sin(\tau)')
axis([0 20 -1 1])
%hold on
figure(2)
f = @(t) sin(t); 
g = @(t) exp(-t/5).*sin(t);
tp = 0:.1:6*pi;
fp = f(tp);
gp = g(tp);
plot(tp,fp,'.-k',tp,gp,'-.r')
legend('sin(\tau)','e^{-\tau/5} sin(\tau)')
xlabel('time \tau')
ylabel('amplitude \zeta')
title('Damped oscillator')
axis([0 20 -2 2])
hold on;
yp=.1*tp-1;
plot(tp,yp)
figure(3)
% you can use 'handles' h to change (set) figure properties:
x=0:.1:2*pi;
y=sin(x);
h=plot(x,y);
set(h,'color','m','linewidth',3,'marker','o')
set(gca,'pos',[0 0 1 1],'visible','off') % gca refers to axes