(z,p,k) = StateSpace.Analysis.zerosAndPoles(ss)
This function calculates the zeros, poles and gain of the corresponding transfer function of a state space system.
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
StateSpace.Conversion.toTransferFunction, TransferFunction.Analysis.zerosAndPoles
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;