[SciPy-user] scipy.signal.firwin

Lev Givon lev@columbia....
Thu Mar 19 11:03:25 CDT 2009

Received from Jan Rauberg on Wed, Mar 18, 2009 at 03:48:45PM EDT:
> I'm missing the functionality of firwin like in matlab/octave fir1, so that I
> can give a 'low', 'high' and 'stop' option. I don't know how to create a FIR
> window based high pass filter. Or is there something planned for the future?
> Thank you
> Jan

If you want to create a high-pass filter, just specify the cutoff to
firwin and flip the signs of the obtained coefficients, i.e.,

b = -firwin(N,cutoff)


More information about the SciPy-user mailing list