2020
09-23
09-23
python实现低通滤波器代码
低通滤波器实验代码,这是参考别人网上的代码,所以自己也分享一下,共同进步#-*-coding:utf-8-*-importnumpyasnpfromscipy.signalimportbutter,lfilter,freqzimportmatplotlib.pyplotaspltdefbutter_lowpass(cutoff,fs,order=5):nyq=0.5*fsnormal_cutoff=cutoff/nyqb,a=butter(order,normal_cutoff,btype='low',analog=False)returnb,adefbutter_lowpass_filter(data,cutoff,fs,order=...
继续阅读 >