本文介绍了如何将fir1阻带滤波器变成多个阻带滤波器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以用fir1(N,[w1 w2],'stop')制作一个带阻滤波器,其中N是滤波器系数的数量,w1是开始停止频率,w2是结束停止频率,如何我可以把它变成一个多阻带滤波器吗?有没有直接的方法可以做到这一点?
A single band-stop filter can be made by fir1(N,[w1 w2],'stop'), where N is the number of filter coefficients, w1 is the beginning stop frequency, w2 the ending stop frequency, how can I turn this into a multiple stop-band filter? Is there a straight forward way to do this?
推荐答案
使用conv确定适当的系数:
use conv to determine the proper coefficients:
b = fir1(50,[0.2 0.3],'stop');
b2 = fir1(50,[0.7 0.8],'stop');
freqz(conv(b,b2),1);
这篇关于如何将fir1阻带滤波器变成多个阻带滤波器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!