Error when trying to obtain transfer function from MIMO state-space representation in MATLAB
Show older comments
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)
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Control System Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!