.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 Complex;
  import Modelica_LinearSystems2.Math.Polynomial;
  import Modelica_LinearSystems2.TransferFunction;
  import Modelica_LinearSystems2.StateSpace;
  input StateSpace ss "State space system";
  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-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos