Signal Processing Toolbox | Help Desk |
zp2tf
Zero-pole-gain to transfer function conversion.
[num,den] = zp2tf(Z,p,k)
zp2tf
forms transfer function polynomials from the zeros, poles, and gains of a system in factored form.
[num,den] = zp2tf(z,p,k)
finds a rational transfer function:p
specifies the pole locations, and array Z
the zero locations, with as many columns as there are outputs. The gains for each numerator transfer function are in vector k
. The zeros and poles must be real or come in complex conjugate pairs. The polynomial coefficients are returned in vectors: the denominator coefficients in row vector den
and the numerator coefficients in matrix num
, with as many rows as there are columns of z
.
Inf
values can be used as place holders in Z
if some columns have fewer zeros than others.
The system is converted to transfer function form using poly
with p
and the columns of Z
.