.Modelica_LinearSystems2.Examples.StateSpace.analysisPolesAndZerosSISO

Information

This example shows the computation of the poles and zeros of a SISO system and of its irreducible representation.

Interface

function analysisPolesAndZerosSISO
  extends Modelica.Icons.Function;
  import Modelica_LinearSystems2.StateSpace;
  import Modelica_LinearSystems2.Math.Complex;
  input String fileName = "NoName" "file where matrix [A, B; C, D] is stored" annotation(
    Dialog(group = "system data definition", loadSelector(filter = "MAT files (*.mat);; All files (*.*)", caption = "state space system data file"), enable = systemOnFile));
  input String matrixName = "ABCD" "Name of the state space system matrix" annotation(
    Dialog(group = "system data definition", enable = systemOnFile));
  input Real A[:, :] = [-1.0, 0.0, 0.0; 0.0, -2.0, 0.0; 0.0, 0.0, -3.0] annotation(
    Dialog(group = "system matrices", enable = not systemOnFile));
  input Real B[:, :] = [1.0; 1.0; 0.0] annotation(
    Dialog(group = "system matrices", enable = not systemOnFile));
  input Real C[:, :] = [1.0, 1.0, 1.0] annotation(
    Dialog(group = "system matrices", enable = not systemOnFile));
  input Real D[:, :] = [0.0] annotation(
    Dialog(group = "system matrices", enable = not systemOnFile));
  output Boolean ok;
end analysisPolesAndZerosSISO;

Generated at 2024-04-23T18:15:56Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos