analpf — create analog low-pass filter
[hs,pols,zers,gain]=analpf(n,fdesign,rp,omega)
positive integer : filter order
string : filter design method : 'butt'
or 'cheb1'
or 'cheb2'
or 'ellip'
2-vector of error values for cheb1, cheb2 and ellip filters where only rp(1)
is used for cheb1 case, only rp(2)
is used for cheb2 case, and rp(1)
and rp(2)
are both used for ellip case. 0<rp(1),rp(2)<1
for cheb1 filters 1-rp(1)<ripple<1
in passband
for cheb2 filters 0<ripple<rp(2)
in stopband
for ellip filters 1-rp(1)<ripple<1
in passband 0<ripple<rp(2)
in stopband
cut-off frequency of low-pass filter in Hertz
rational polynomial transfer function
poles of transfer function
zeros of transfer function
gain of transfer function
Creates analog low-pass filter with cut-off frequency at omega.
hs=gain*poly(zers,'s')/poly(pols,'s')