functiontoDiscreteZerosAndPoles
Generate a DiscreteZerosAndPoles object from a DiscreteTransferFunction object
Information
Syntax
dzp = DiscreteTransferFunction.Conversion.toDiscreteZerosAndPoles(tf)
Description
Computes a DiscreteZerosAndPoles record
product(z + n1[i]) * product(z^2 + n2[i,1]*z + n2[i,2])
zp = k * ---------------------------------------------------------
product(z + d1[i]) * product(z^2 + d2[i,1]*z + d2[i,2])
of a discrete transfer function represented by numerator and denominator polynomial. The poles and zeros and the gain k are computed by (zerosAndPoles) and are used as inputs the DiscreteZerosAndPoles constructor.
Example
DiscreteTransferFunction z = Modelica_LinearSystems2.DiscreteTransferFunction.z(); Modelica_LinearSystems2.TransferFunction tf = 1/(z^2 + 3*z +2) algorithm dzp:=Modelica_LinearSystems2.TransferFunction.Conversion.toZerosAndPoles(dtf); // zp = 1/( (z + 1)*(z + 2) )
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| DiscreteTransferFunction | dtf | transfer function of a system |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| DiscreteZerosAndPoles | dzp |