Controllable Companion form for a MIMO system
Show older comments
Hi I have this state-space system and I want to find out about It's controllable canonical form using MATLAB. My problem is Compreal() only works when you have SISO system and my system has two inputs(Using compreal only gave me canonical form for the first input and it's not considering the second input). What should I do about this and how can I represent controllable canonical form for this kind of system? (Also I have check the rank of controllablity matrix and It has rank of 4 similar to my A matrix so system is controllable)
A=[-0.978707531551846 2.37478961356718e-14 7.42345117560053e-14 0.318698761698607;
-2.63927929244335e-14 -2.00000000000000 -3 -4.93782914225613e-16;
8.09939070469741e-19 -3.33066907387547e-16 -1.00000000000000 5.83814072314816e-19;
-0.135043844787908 -3.13829005324231e-15 -2.83836564755302e-14 -3.02129246844816];
B=[-0.993655438699628 -0.136196562445474;
-2.31027060974740e-14 -1.78885438199983;
1.75613973071755e-14 -0.894427190999916;
-0.360965272521026 0.863803437554497]
C=[-0.951865027888002 0.447213595499936 -0.894427190999894 -0.150081302150705;
-0.397764357325956 -9.25144024323242e-15 -1.40800559951749e-14 1.09495496399803]
D=[0 0;
0 0]
Accepted Answer
More Answers (1)
The following is the result returned by compreal:
%% Original state-space Plant
A = [-0.978707531551846 2.37478961356718e-14 7.42345117560053e-14 0.318698761698607;
-2.63927929244335e-14 -2.00000000000000 -3 -4.93782914225613e-16;
8.09939070469741e-19 -3.33066907387547e-16 -1.00000000000000 5.83814072314816e-19;
-0.135043844787908 -3.13829005324231e-15 -2.83836564755302e-14 -3.02129246844816];
B = [-0.993655438699628 -0.136196562445474;
-2.31027060974740e-14 -1.78885438199983;
1.75613973071755e-14 -0.894427190999916;
-0.360965272521026 0.863803437554497];
C = [-0.951865027888002 0.447213595499936 -0.894427190999894 -0.150081302150705;
-0.397764357325956 -9.25144024323242e-15 -1.40800559951749e-14 1.09495496399803];
D = [0 0;
0 0];
Gp = ss(A, B, C, D);
%% The Transformation matrix is very close to singular
[sys, T] = compreal(Gp);
disp(T)
det(T) % determinant of Transformation matrix is very close to zero
%% The controllable canonical form (Results maybe inaccurate!)
csys = ss(sys.A', sys.C', sys.B', sys.D')
1 Comment
naiva saeedia
on 5 Dec 2024
Edited: naiva saeedia
on 5 Dec 2024
Categories
Find more on State-Space Control Design 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!



