This example demonstrates the conversion of a zeros-and-poles system into a state space system.
Running this function the following output will be printed containing the input zeroes and poles
description zp
and the resulting output state space description ss
.
zp = 4*(p - 2) / ( (p - 1)*(p^2 - 4*p + 13) ) ss = ss.A = x1 x2 x3 x1 0 1 0 x2 -13 4 0 x3 -1 0.5 1 ss.B = u1 x1 0 x2 13 x3 0 ss.C = x1 x2 x3 y1 0 0 0.615384615385 ss.D = u1 y1 0
function conversionFromZerosAndPoles extends Modelica.Icons.Function; import Modelica.ComplexMath.j; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.ZerosAndPoles; output Boolean ok "Standard output"; end conversionFromZerosAndPoles;