[SciPy-User] Low pass filter
Ivo Maljevic
ivo.maljevic at gmail.com
Thu Sep 17 10:50:01 EDT 2009
Does the following:
plt.plot(timing, voltage)
plt.show()
work before filtering? (Suggestion, you may want to put time on x-axis, see
the line above)
I just wrote a small test program, and it works:
#!/usr/bin/python
# import
import pylab as plt
from scipy import *
from scipy.signal import butter, lfilter
t=linspace(0,1,100)
v=sin(2*pi*t)
(b,a)=butter(2,5,btype='low')
v=lfilter(b,a,v)
plt.plot(t,v)
plt.show()
2009/9/17 Kaan AKŞİT <kunguz at gmail.com>
> Hi all,
>
> This is my first time that I use Scipy. I have two arrays both of them one
> dimensional. One of them is filled with voltage values and one of them is
> filled with time values. I want to apply low pass filter to clear the noise
> from the data. Can you please help me? I already wrote something but it is
> not working:
>
> (b,a)=butter(2,5,btype='low')
> voltage=lfilter(b,a,voltage)
> plt.plot(voltage,timing)
>
> Best regards,
> Kaan
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20090917/11c0853a/attachment.html>
More information about the SciPy-User
mailing list