ellip
Elliptic filter design
Syntax
Description
[
designs an b,a
] = ellip(n
,Rp
,Rs
,Wp
)n
th-order lowpass digital elliptic filter with
normalized passband edge frequency Wp
. The resulting filter
has Rp
decibels of peak-to-peak passband ripple and
Rs
decibels of stopband attenuation relative to the
peak passband value. The ellip
function returns the
numerator and denominator coefficients of the filter transfer function.
[
designs a lowpass, highpass, bandpass, or bandstop digital elliptic filter,
depending on the value of b,a
] = ellip(n
,Rp
,Rs
,Wp
,fType
)fType
and the number of elements
of Wp
. The resulting bandpass and bandstop designs are of
order 2n
.
Note
You might encounter numerical instabilities when designing IIR filters with transfer functions for orders as low as 4. See Transfer Functions and CTF for more information about numerical issues that affect forming the transfer function.
[
designs a digital elliptic filter and returns its zeros, poles, and gain. This
syntax can include any of the input arguments in previous syntaxes.z,p,k
] = ellip(___)
[___] = ellip(___,"s")
designs an
analog elliptic filter using any of the input or output arguments in previous
syntaxes.
[
designs a lowpass digital elliptic filter using second-order Cascaded Transfer Functions
(CTF). The function returns matrices that list the denominator and numerator
polynomial coefficients of the filter transfer function, represented as a
cascade of filter sections. This approach generates IIR filters with improved
numerical stability compared to single-section transfer functions. (since R2024b)B,A
] = ellip(n
,Rp
,Rs
,Wp
,"ctf")
[___] = ellip(
designs a lowpass, highpass, bandpass, or bandstop digital elliptic filter, and
returns the filter representation using the CTF format. The resulting design
sections are of order 2 (lowpass and highpass filters) or 4 (bandpass and
bandstop filters). (since R2024b)n
,Rp
,Rs
,Wp
,fType
,"ctf")
[___,
also returns the overall gain of the system. You must specify
gS
] = ellip(___)"ctf"
to return gS
. (since R2024b)
Examples
Input Arguments
Output Arguments
More About
Algorithms
Elliptic filters offer steeper rolloff characteristics than Butterworth or Chebyshev filters, but are equiripple in both the passband and the stopband. In general, elliptic filters meet given performance specifications with the lowest order of any filter type.
ellip
uses a five-step algorithm:
It finds the lowpass analog prototype poles, zeros, and gain using the function
ellipap
.It converts the poles, zeros, and gain into state-space form.
If required, it uses a state-space transformation to convert the lowpass filter to a bandpass, highpass, or bandstop filter with the desired frequency constraints.
For digital filter design, it uses
bilinear
to convert the analog filter into a digital filter through a bilinear transformation with frequency prewarping. Careful frequency adjustment enables the analog filters and the digital filters to have the same frequency response magnitude atWp
orw1
andw2
.It converts the state-space filter back to transfer function or zero-pole-gain form, as required.
References
[1] Lyons, Richard G. Understanding Digital Signal Processing. Upper Saddle River, NJ: Prentice Hall, 2004.