采用窗函数法设计一个数字FIR低通滤波器,其技术指标为:wp=0.2pi,ws=0.3pi,rp0.25db,as=50db
题目
采用窗函数法设计一个数字FIR低通滤波器,其技术指标为:wp=0.2pi,ws=0.3pi,rp0.25db,as=50db
,并画出其频率响应图.
答案
结合衰减和过度带,可选择哈明窗.尽管在设计中,没有使用通带波动值Rp,但必须检查设计的实际波动,验证它是否确实在给定容限内.对应的MATLAB程序为:
wp= 0.2* pi; ws = 0.3 *pi;
tr_width = ws –wp; %确定过度带宽
M = ceil (6.6* pi /tr_width) +1 ;% 确定滤波器阶数 ,ceil是向上取整函数
n = [0:1:M-1];
wc = (ws +wp ) /2; %理想低通的截止频率
hd = ideal _lp (wc,M);
w_ham = (hamming (M))’;
h = hd .* w_ham;
[db,mag,pha,grd,w]=freqz_m (h,[1]);
delta _w =2*pi/1000;
Rp= - (min (db(1:1:wp/ delta _w +1))); %实际通带波动
As= - round (max (db (ws/delta_w +1:1:501 ))) ;% 最小阻带衰减
%画图 (见图1-5-1)
subplot (2,2,1); stem(n,hd ); title (‘理想冲激响应’);
axis ([0 ,M-1,-0.1 ,0.3]); xlabel (‘n’); ylabel (‘hd(n)’ );
subplot (2,2,2); stem(n,w_ham ); title (‘哈明窗’);
axis ([0 ,M-1,0 ,1.1]); xlabel (‘n’); ylabel (‘w(n)’ );
subplot (2,2,3); stem(n,h ); title (‘实际冲激响应’);
axis ([0 ,M-1,-0.1 ,0.3]); xlabel (‘n’); ylabel (‘h(n)’ );
subplot (2,2,4); plot (w/pi,db ); title (‘幅度响应(单位:dB)’); grid
axis ([0 ,1,-100 ,10]); xlabel (‘频率(单位:pi)’); ylabel (‘分贝数’ );
根据以上代码,可计算出滤波器阶数M=67,实际的阻带衰减As=52dB,实际的通带波动为Rp=0.0394 dB,满足设计技术指标.
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- Mr Green lived on the third floor last month?(划线部分提问)划线划在on the third floor
- 词项逻辑中有“量项”,谓词逻辑中有“量词”,两者有什么根本区别?
- This is a 3—d printer.and this is an artifical ear.
- 0.68/0.95怎么样列竖式
- 蒹葭的诗句是什么
- 圆+正方形=94 三角形+正方形=67 三角形+圆=51 求圆正方形三角形各是多少?
- If you want to pass the cars in front,you have to go into the fast lane on the right.的翻译
- 某企业生产某产品的固定成本为100万元,单位产品可变成本700元,单位产品售价为900元,求产量
- A=B除以7,(A,B)=( ),[A,b]=( )
- 简算167乘69-69乘67
热门考点
- 什么是谓语解释一下
- 衍射发生的充分必要条件是什么
- "Now the house is very expensive.” 的 同义词
- my brother cut a tree in front of our house last year.这样写对吗?
- 两道结构一样的语法题,求赐教.that is the school____last year.This was the place __last year
- 一条直线过点﹙1,x﹚分别与x轴,y轴的正半轴交于A,B两点,O为原点,求三角形的面积最小,则直线方程为
- 不要喝酒!英文怎么说
- 句型转换(保持句意基本不变) 1.we clean our classroom every day.----- ----- ------ ------every day
- 有一份爱,一直温暖着我作文
- 一个大西瓜,八戒吃了八分之五,剩下的西瓜沙僧吃了一半,另一半唐僧和悟空各吃了一半,悟空吃了这个西瓜的几分之几