[SciPy-user] scipy.signal.firwin

Neal Becker ndbecker2@gmail....
Sat Mar 21 08:48:07 CDT 2009


Jan Rauberg wrote:

> Lev Givon <lev <at> columbia.edu> writes:
> 
>> 
>> 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)
>> 
>> L.G.
>> 
> 
> 
> Thank you for the fast response. But in the way as you described I get an
> inverted low pass figure. That's not a high pass and no solution for my
> problem too. Perhaps there is another solution? J.R.

A trivial (not ideal) solution is G(z) = 1-H(z)




More information about the SciPy-user mailing list