t=[0:.1:100]';
u=-1+0.02*t;
y=sin(0.2*t);
figure(2),clf
x0=0;y0=0;x1=100;y1=0;
plot(t,y,t,u,[x0 x1]',[y0 y1]','--')