clear
t=[0:.1:100]';
u=-1+0.02*t;
y=sin(0.2*t);
figure(2),clf
m=2;
n=1;
nr=1;
subplot(m,n,nr)
plot(t,y)
grid
ylabel('y')
title('Diagram 1')
nr=nr+1;
subplot(m,n,nr)
plot(t,u)
grid
xlabel('t [sek]')
ylabel('u')
title('Diagram 2')