functionzerosAndPoles

Calculate zeros and poles of the TransferFunction corresponding to a state space representation

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

Inputs

TypeNameDefaultDescription
StateSpacessState space system

Outputs

TypeNameDefaultDescription
Complex[:]zZeros (Complex vector of numerator zeros)
Complex[:]pPoles (Complex vector of denominator zeros)
RealkConstant multiplied with transfer function that is factorized with zeros and poles