ellip
Elliptic/Cauer filter design with rp dB of passband ripple and rs dB of stopband attenuation.
Calling Sequence
[b, a] = ellip (n, rp, rs, wp)
[b, a] = ellip (n, rp, rs, wp, "high")
[b, a] = ellip (n, rp, rs, [wl, wh])
[b, a] = ellip (n, rp, rs, [wl, wh], "stop")
[z, p, g] = ellip (…)
[…] = ellip (…, "s")
Parameters
n:
positive integer value (order of filter)
rp:
non negative scalar value (passband ripple)
rs:
non negative scalar value (stopband attenuation)
ws:
scalar or vector of length 2, all elements should be in the range [0,1] 1).Normalised digital passband edge(s) for digital filter, in the range [0, 1] {dimensionless} 2).Analog passband edge(s) for analog filter, in the range [0, Inf] {rad/sec}
Description
This function generates an elliptic or Cauer filter with rp dB of passband ripple and rs dB of stopband attenuation.
[b, a] = ellip(n, Rp, Rs, Wp) indicates low pass filter with order n, Rp decibels of ripple in the passband and a stopband Rs decibels down and cutoff of pi*Wp radians. If the fifth argument is high, then the filter is a high pass filter.
[b, a] = ellip(n, Rp, Rs, [Wl, Wh]) indictaes band pass filter with band pass edges pi*Wl and pi*Wh. If the fifth argument is stop, the filter is a band reject filter.
[b,a] = ellip(n, Rp, Rs, [Wl, Wh], 'stop') band reject filter with edges pi*Wl and pi*Wh
[z, p, g] = ellip(...) returns filter as zero-pole-gain.
[...] = ellip(...,’s’) returns a Laplace space filter, wp can be larger than 1 rad/sec.
Examples