functiontoZerosAndPoles
Convert a TransferFunction into a ZerosAndPoles object
Information
Syntax
zp = TransferFunction.Conversion.toZerosAndPoles(tf)
Description
Computes a ZerosAndPoles record
product(s + n1[i]) * product(s^2 + n2[i,1]*s + n2[i,2])
zp = k * ---------------------------------------------------------
product(s + d1[i]) * product(s^2 + d2[i,1]*s + d2[i,2])
of a transfer function representated by numerator and denominator polynomial. The poles and zeros and the gain k are computed (zerosAndPoles) and are used as inputs the ZerosAndPoles constructor.
Example
TransferFunction s = Modelica_LinearSystems2.TransferFunction.s(); Modelica_LinearSystems2.TransferFunction dtf = 1/(s^2 + 3*s +2) algorithm zp:=Modelica_LinearSystems2.TransferFunction.Conversion.toZerosAndPoles(tf); // zp = 1/( (s + 1)*(s + 2) )
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| TransferFunction | tf | Transfer function of a system |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| ZerosAndPoles | zp | ZerosAndPoles object |