% Poles and Zeroes example

A=diag([-1,1,-2,-1,-2]);
A(5,4)=-2;

B=[1,0,0;1,0,0;0,1,1;0,0,1;0,0,-1];
D=[1,0,0,0,1;0,-1,1,0,0];

% Pack system as and object
Sys=ss(A,B,D,zeros(2,3));

% Poles from transfer matrix model
pole(Sys)

% Eigenvalues of A matrix
eig(A)

% Transmission zeroes. No transmission zeroes.
tzero(Sys)

% Transfer matrix model
s=tf('s');

Hp=D*inv(s*eye(5)-A)*B
