I have 4 transfer function that are G11, G12, G21, and G22. And how do I convert this 4 transfer function into a state space model? The following are my codes, however, the results of state space model are different from the linearization using SIMULINK.
g_num11=[4];
g_den11=[1 4];
g11=tf({g_num11},{g_den11});
g_num12=[5.338e-76];
g_den12=[1 8.674 18.7];
g12=tf({g_num12},{g_den12});
g_num21=[-1.5268e-79];
g_den21=[1 15.02 72.02 111.7];
g21=tf({g_num21},{g_den21});
g_num22=[2.539];
g_den22=[1 11.02 29.67];
g22=tf({g_num22},{g_den22});
g_plant=tf({g_num11 g_num12; g_num21 g_num22}, {g_den11 g_den12; g_den21 g_den22})
sys=ss(g_plant,'min')
%Convert transfer function model into state space model
[A,B,C,D]=ssdata(sys)
The results are shown below:
A =
-4.0000 -0.0000 -0.0000
-0.0000 -11.0200 -7.4175
0.0000 4.0000 -0.0000
B =
-2.0000 0.0000
0.0000 1.0000
0.0000 -0.0000
C =
-2.0000 0.0000 0.0000
0.0000 -0.0000 0.6348
D =
0 0
0 0
The results below are using Linear Analysis in the SIMULINK window to linearize.
A =
-4.0000 -0.0000 -0.0000
-0.0000 -4.67400 -0.6744
0.0000 0.0000 -6.3480
B =
-4.0000 0.0000
0.0000 0.0000
0.0000 3.7650
C =
1.0000 0.0000 0.0000
0.0000 1.0000 0.0000
D =
0 0
0 0
Thanks for your help =)