functiontoTransferFunctionMIMO

Generate a transfer function of a MIMO system from state space representation

Information

Syntax

tf = StateSpace.Conversion.toTransferFunctionMIMO(ss)

Description

Computes a matrix of TransferFunction records

           n_i(s)     b0_i + b1_i*s + ... + bn_i*s^n
   tf_i = -------- = --------------------------------
           d_i(s)     a0_i + a1_i*s + ... + an_i*s^n
 
with repetitive application of Conversion.toTransferFunction

Example

Syntax

zp = StateSpace.Conversion.toTransferFunctionMIMO(ss)

Description

Computes a matrix of TransferFunction records

           n(s)     b0 + b1*s + ... + bn*s^n
   tf = -------- = --------------------------
           d(s)     a0 + a1*s + ... + an*s^n
 
with repetitive application of Conversion.toTransferFunction

Example

   Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A = [-1.0, 0.0, 0.0;
          0.0,-2.0, 0.0;
          0.0, 0.0,-3.0],
      B = [0.0, 1.0;
           1.0, 1.0;
          -1.0, 0.0],
      C = [0.0, 1.0, 1.0;
           1.0, 1.0, 1.0],
      D = [1.0, 0.0;
           0.0, 1.0]);

algorithm
  zp:=Modelica_LinearSystems2.StateSpace.Conversion.toZerosAndPoles(ss);

// zp = [(s^2 + 5*s + 7)/(s^2 + 5*s + 6), 1/(s + 2);
         1/(s^2 + 5*s + 6), (1*s^2 + 5*s + 5)/(s^2 + 3*s + 2)]
i.e.
           |                                                   |
           |    (s^2+5*s+7)                    1               |
           | -----------------               -----             |
           |  (s + 2)*(s + 3)                (s+2)             |
    tf  =  |                                                   |
           |        1             (s + 1.38197)*(s + 3.61803)  |
           | -------------       ----------------------------- |
           | (s + 2)*(s + 3)            (s + 1)*(s + 2)        |
           |                                                   |

Inputs

TypeNameDefaultDescription
StateSpacessStateSpace object

Outputs

TypeNameDefaultDescription
TransferFunction[size(ss.C, 1),size(ss.B, 2)]tfMatrix of transfer function objects

Revisions

Date Author Comment
2010-05-31 Marcus Baur, DLR-RM Realization