.Modelica_LinearSystems2.Examples.StateSpace.plotPolesAndZeros2

Information

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

Interface

function plotPolesAndZeros2
  extends Modelica.Icons.Function;
  import Modelica.ComplexMath.j;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.ZerosAndPoles;
  output Boolean ok "Standard output";
end plotPolesAndZeros2;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos