| Filter Design Toolbox | ![]() |
Zero-pole-gain frequency transformation of the digital filter
Syntax
Description
[Z2,P2,K2] = zpkftransf(Z,P,K,AllpassNum,AllpassDen)
returns zeros, Z2, poles, P2, and gain factor, K2, of the transformed lowpass digital filter. The prototype lowpass filter is given with zeros, Z, poles, P, and gain factor, K. If AllpassDen is not specified it will default to 1. If neither AllpassNum nor AllpassDen is specified, then the function returns the input filter.
Examples
Design a prototype real IIR halfband filter using a standard elliptic approach:
[b, a] = ellip(3,0.1,30,0.409); [AlpNum, AlpDen] = allpasslp2lp(0.5, 0.25); [z2, p2, k2] = zpkftransf(roots(b),roots(a),b(1),AlpNum,AlpDen);
Verify the result by comparing the prototype filter with the target filter:
Arguments
Z
Zeros of the prototype lowpass filter
See Also
iirftransf
| zpkbpc2bpc | zpklp2bp | ![]() |