MATLAB: A strange issue in calculating the transfer function

state-space modeltransfer function

I have a SISO state space model like below,but the transfer function I get from MATLAB doesn't match my calculation.The adjoint of A should be the last row and last column,so it's s^2(s+1)^3 and make TF to be 1/(s+2), but why my TF shows exactly different thing? Can any one tell me what's wrong with my system?
A=[0 1 0 0 0 0
0 0 0 0 0 0
0 0 -1 1 0 0
0 0 0 -1 1 0
0 0 0 0 -1 0
0 0 0 0 0 -2];
B=[0;1;0;0;1;1];
C=[0 0 1 0 0 1];
D=0;
sys = ss(A,B,C,D);
TF=tf(sys)
TF =
s^3 + 3 s^2 + 4 s + 3
-----------------------------
s^4 + 5 s^3 + 9 s^2 + 7 s + 2

Best Answer

I find out the issue, no need to answer this, I just make mistake in calculating the adjoint