i'm trying to obtain a transfer function from my state-space MIMO response system. However, when I go to run this code, it will give me:
Error using ss2tf (line 26). The A and B matrices must have the same number of rows.
This doesn't make sense as I have 4 rows in A, and 4 rows in B.
A = [0 2 5 -4;0 0 0 0;0 0 0 1;-6 0 -1 -2]; B = [1 2;0 0;0 0;0 5]'; C = [1 0 0 0;0 1 0 0;0 0 1 0; 0 0 0 1]; D = 0;
[nom1, denom1] = ss2tf(A,B,C,D)
Best Answer