Main Content

iirpowcomp

Power complementary IIR filter

Description

example

[bp,ap] = iirpowcomp(b,a)returns the coefficients vectorsbpandap, of the power complementary IIR filter g(z) = bp(z) / ap(z), given the coefficients vectorsbandaof the IIR filter h(z) =b(z)/a(z) in . The vectorbmust be symmetric (Hermitian) or antisymmetric (antihermitian) and of the same length as the vectora. The two power complementary filters satisfy the relation

|H(w)|2+ |G(w)|2= 1.

[bp,ap] = iirpowcomp(b,a,c)allow you to specify a complex scalar of unity magnitude,c, which forcesbpto satisfy the generalized Hermitian property:

conj(bp(end:-1:1)) = c*bp

Examples

collapse all

Calaculate the coefficients of the power complementary IIR filter.

[b,a]=cheby1(10,.5,.4); [bp,ap]=iirpowcomp(b,a);

Compare the magnitude responses of the filters using FVTool.

hvft = fvtool(b,a,bp,ap,'MagnitudeDisplay','Magnitude squared'); legend(hvft,'Original Filter','Power Complementary Version');

Figure Magnitude Response (squared) contains an axes object. The axes object with title Magnitude Response (squared) contains 2 objects of type line. These objects represent Original Filter, Power Complementary Version.

Input Arguments

collapse all

Numerator coefficients of the IIR filter, specified as a row vector. The vector b must be symmetric (Hermitian) or antisymmetric (antihermitian) and of the same length as the vectora.

Data Types:single|double
Complex Number Support:Yes

Denominator coefficients of the IIR filter, specified as a row vector.

Data Types:single|double
Complex Number Support:Yes

Complex scalar of unity magnitude, which forces thebpto satisfy generalized Hermitian property.

The generalized Hermitian property is given by:

conj(bp(end:-1:1)) = c*bp

Whencis omitted, the function choosescas follows:

  • Whenbis real, the function choosescas 1 or -1, whichever yieldsbpas real.

  • Whenbis complex,cdefaults to 1.

apis always equal toa.

Data Types:single|double
Complex Number Support:Yes

Output Arguments

collapse all

Numerator coefficients of the power complementary IIR filter, returned as a row vector.

Data Types:single|double

Denominator coefficients of the power complementary IIR filter, returned as a row vector.

Data Types:single|double
Complex Number Support:Yes

版本历史

Introduced in R2011a

See Also

Functions