%
% Example 6.2
%
z=-1;
p=[-3 -10 -60 -70];
k=12600;
[num,den]=zp2tf(z,p,k);
t=0:0.05:5;
[y,x]=step(num,den,t);
zr=-1;
pr=[-3 -10];
kr=3;
[numr,denr]=zp2tf(zr,pr,kr);
[yr,xr]=step(numr,denr,t);
plot(t,y,t,yr,'--');
xlabel('time t [sec]');
ylabel('(1):y(t), (2):yr(t)');
grid;
text(0.71,0.16,'(1)');
text(0.41,0.13,'(2)');
end