.Modelica_LinearSystems2.StateSpace.Analysis.zerosAndPoles

Information

Syntax

(z,p,k) = StateSpace.Analysis.zerosAndPoles(ss)

Description

This function calculates the zeros, poles and gain of the corresponding transfer function of a state space system.

Example

  Modelica_LinearSystems2.StateSpace ss=Modelica_LinearSystems2.StateSpace(
    A=[-1],
    B=[1],
    C=[1],
    D=[1]);

  Complex z;
  Complex p;
  Real k;

algorithm
  (z,p,k)=Modelica_LinearSystems2.StateSpace.Analysis.zerosAndPoles(ss);
//  z = {-2}
//  p = {-1}
//  k = 1

See also

StateSpace.Conversion.toTransferFunction, TransferFunction.Analysis.zerosAndPoles

Interface

encapsulated function zerosAndPoles
  import Modelica;
  import Modelica_LinearSystems2.Math.Complex;
  import Modelica_LinearSystems2.Math.Polynomial;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.StateSpace;
  input StateSpace ss;
  output Complex z[:] "Zeros (Complex vector of numerator zeros)";
  output Complex p[:] "Poles (Complex vector of denominator zeros)";
  output Real k "Constant multiplied with transfer function that is factorized with zeros and poles";
end zerosAndPoles;

Generated at 2024-04-26T18:16:04Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos