eqiir — Design of iir filters
[cells,fact,zzeros,zpoles]=eqiir(ftype,approx,om,deltap,deltas)
filter type ('lp','hp','sb','bp'
)
design approximation
('butt','cheb1','cheb2','ellip'
)
4-vector of cutoff frequencies (in radians)
om=[om1,om2,om3,om4]
, 0 <= om1 <=
om2 <= om3 <= om4 <= pi
. When
ftype
='lp' or 'hp', om3
and
om4
are not used and may be set to 0.
ripple in the passband. 0<= deltap
<=1
ripple in the stopband. 0<= deltas
<=1
realization of the filter as second order cells
normalization constant
zeros in the z-domain
poles in the z-domain
Design of iir filter based on syredi.
The filter obtained is h(z)=fact
*product of the
elements of cells
.
That is
hz=fact*prod(cells.num)./prod(cells.den).