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
| Type | Name | Default | Description |
|---|---|---|---|
| StateSpace | ss | State space system |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Complex[:] | z | Zeros (Complex vector of numerator zeros) | |
| Complex[:] | p | Poles (Complex vector of denominator zeros) | |
| Real | k | Constant multiplied with transfer function that is factorized with zeros and poles |