|
Hello to all,
let say I have the following MIMO system (2 inputs, 2 outputs):
g11=tf(1,[2,1]);
g12=tf(1.5,[10 1]);
g21=tf(-3,[2 1]);
g22=tf(5, [4 1]);
G=[g11,g12;g21,g22];
G is matrix form of transfer function.
Now if I convert this to state space:
[a,b,c,d]=ssdata(ss(G, 'min'))
I get the following result:
a =
-0.1000 0.0000 -0.0000
0.0000 -0.5000 0.0000
-0.0000 0.0000 -0.2500
b =
0.0000 0.5000 0.0000 -0.0000
-0.2774 0.0000 0.8321 0.0000
0.0000 -0.0000 0.0000 1.0000
c =
0.3000 -1.8028 1.2500
d =
0 0 0 0
Now the question is: How to symulate this in simulink?
Usually I use mux and demux blocks.
I connect to inputs via mux to "state sace representation" block in
standard continuous library, then I obtain results of simulation using
demux.
Now if I try that get error that dimensions are not right.
I can see that too, by observing matrices B and C.
How to solve this problem?
Thanks
|