[SciPy-user] filter design problem
Kasper Souren
Kasper.Souren at ircam.fr
Thu Sep 25 10:58:42 EDT 2003
Hi,
It's me doing something wrong, or there is a bug in the signal package. My
scipy_version is 0.2.0_alpha_196.4128.
I'm trying to create a Butterworth bandpass filter, but somehow the resulting
filter is always lowpass. I.e. the plot of the freqz is always 1 at the 0
frequency.
Here is some code:
from scipy.signal import buttord, butter, freqz
n,Wn=buttord([0.4, 0.6], [0.2, 0.7], 3, 45)
b,a=butter(n,Wn)
gplt.plot(abs(freqz(b,a,1000)[1]))
bye,
Kasper
--
We are not the consumers of the media, we are the product.
-Kevin Danaher
More information about the SciPy-User
mailing list