%
% Example 2.5
%
% define G1(s)
z1=[inf;inf;inf];
% all three zeros of G1(s) are at infinity
p1=[0;-1;-2];
k1=5;
[n1,d1]=zp2tf(z1,p1,k1);
% zp2tf maps zero-pole transfer function into
% numerator-denominator transfer function
% define G2(s)
n2=[1 4];
d2=[1 5];
% find the series connection
[ns,ds]=series(n1,d1,n2,d2);
% print
printsys(ns,ds,'s')
[np,dp]=parallel(n1,d1,n2,d2);
printsys(np,dp,'s')
[nf,df]=feedback(n1,d1,n2,d2,-1);
% -1 indicates negative feedback
printsys(nf,df,'s')
end