This example demonstrates the conversion of a transfer function into a state space system.
Running this function the following output will be printed containing the input transfer
function tf and the resulting output state space description ss.
tf = (s + 1)/(s^3 + s^2 + s + 1)
ss =
ss.A =
x1 x2 x3
x1 0 1 0
x2 0 0 1
x3 -1 -1 -1
ss.B =
u1
x1 0
x2 0
x3 1
ss.C =
x1 x2 x3
y1 1 1 0
ss.D =
u1
y1 0
function conversionFromTransferFunction extends Modelica.Icons.Function; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.TransferFunction; output Boolean ok "Standard output"; end conversionFromTransferFunction;