Thread Subject: MIMO systems state space and transfer function representation

Subject: MIMO systems state space and transfer function representation

From: AsimV

Date: 15 Feb, 2009 15:36:52

Message: 1 of 1

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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com