版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、数字信号处理project实验报告学院:电子工程与光电技术学除专业:诵信工程学号: 姓名:IIR 低通滤波器设计1. 滤波器要求:Using bilinear transform methods ,design a IIR low-pass filter with the following specifications:p 0.2A , s 0.4A ; the passband ripple -0.5dB,the stopband attenuation 20dB.where A is the last nomber of your student number(1)Write a pro
2、gram to compute the required order of theButterworth or Chebyshev analog filters;(2) Using bilinear transform methods ,transform the analog filters to the corresponding digital filters;(3) Sketch the frequency response of the filters.2. 滤波器设计程序如下:wp=0.25*pi;ws=0.45*pi;Wp=tan(wp/2);Ws=tan(ws/2);ap=0.
3、5;as=20;N,Wn= cheb1ord(Wp,Ws,ap,as, 's' );B,A= cheby1(N,1,Wn, 's' );num,den= bilinear(B,A,0.5);h,w=freqz(num,den);subplot(211);plot(w/pi,20*log10(abs(h);ylim(-50 5);xlim(0 1);xlabel( 'Omega/pi' );ylabel( ' 增益(dB) ' );title('幅度响应曲线);grid;h,w=phasez(num,den);subplot
4、(212);plot(w/pi,h/pi*180);xlabel('OmegaApi');ylabel( 'phase(degree)' );title('相位响应曲线');grid;其中,wp,ws是角频带边界频率,Wp,Ws是模拟低通滤波器的 边带角频率,ap是通带波纹,as是阻带波纹,h是频率响应。幅度相位响应波形如下:Hie Edit View Insert Tools De&ktop Window HelpQ 国 idG目 口幅度响应曲线001020.3040 50 60.70.E0 9111kli1Iil-II1111111-
5、100-200相位响应曲线0.10 20.30 40 &0 60.70 60 &1(awscd5典 dcm 0二、 FIR 低通滤波器设计1. 滤波器要求:Design a low-pass FIR filter by windowing, the specifications of the filterarefp ( 800 A) Hz, A=last two numbers of your student number;fs ( 1000+B) Hz;B=the last number of your student number; passbandripple 0.5dB
6、;min imum stopband attenuation( 40+last nomber of the student numbe) r dB; fT4kHz.Please using two different windows design the filter ,and sketch theirfrequency response.2. 滤波器设计程序如下:clear;fp=845;fs=1005;Fs=4000;as=45;wp=(fp*2*pi)/(Fs);ws=(fs*2*pi)/(Fs);wc=(wp+ws)/2;dw= ws-wp;%HammingM=ceil(3.32*pi
7、/dw);N=2*M+1;b=fir1(N,ws/(2*pi);H,w=freqz(b,1,512);figure(1);stem(b);title( ' 冲激响应' ););xlabel( 'Time-index-nylabel( 'hn');figure(2);plot(w/pi,20*log10(abs(H);grid;xlabel( 'omega/pi' );ylabel( ' 增益( dB) ' );title( ' 幅度响应' );axis(0 1 -80 10);H,w=phasez(b,1,
8、512);figure(3);plot(w/pi,H/pi*180);grid;xlabel( 'omega/pi' );ylabel( 'phase(degree)' );title( ' 相位响应' );%BlackmanM=ceil(5.56*pi/dw);N=2*M;b=fir1(N,ws/(2*pi),blackman(N+1);H,w=freqz(b,1,512);figure(4);stem(b);title( ' 冲激响应' );xlabel( 'Time-index-n' );ylabel(
9、39;hn');figure(5);plot(w/pi,20*log10(abs(H);grid;xlabel( 'omega/pi' );ylabel( ' 增益( dB) ' );title( ' 幅度响应' );axis(0 1 -200 10);H,w=phasez(b,1,512);figure(6);plot(w/pi,H/pi*180);grid;xlabel( 'omega/pi' );ylabel( 'phase(degree)' );title( '相位响应');其中,f
10、p,fs是频带边界频率,FS是抽样频率,as是最小阻带衰 减,wc是截止频率。由于as=45所以设计时运用了 hamming窗和 blackman 窗。Hamming窗设计的滤波器频率响应波形如下:Hamming窗设计的滤波器幅度响应波形如下:Hamming窗设计的滤波器相位响应波形如下:Blackman窗设计的滤波器频率响应波形如下:Blackman窗设计的滤波器幅度响应波形如下:Figure 5File- Edit View Insert Tools Desktop Window jHelpDia a 二踮国I 度II 国2P)相聊幅度响应OBlackman窗设计的滤波器相位响应波形如下:
11、Bj Figure 6File Edit View Insert Tools Desktop Window Help-500-1000D巴盘|给黑,一是 口 口相位响应 o-1500200025003000-3500400000 10.20.3040 60.60.70 30.93H三、IIR低通滤波器设计1 .滤波器要求:specifications:0.2A , pUsing FDATool to design a low-pass IIR filter with the following0.4A ; the passband ripple -0.5dB, sthe stopband at
12、tenuation (30 A)dB.where A is the last nomber of your student number(1) Select a suitable structure ;(2) Using Butterworth or Chebyshev analog;(3) Sketch the frequency and phase response of the filters;(4) Give the impulse response hn.按照相应的要求,在FDA TOOL中填好相应的参数,就能设计 出需要的滤波器了。幅度相位波形如下:频率响应波形如下:四、FIR高通
13、滤波器设计1 .滤波器要求:Using fdatool to a high-pass FIR filter by Kaiser window, specificationsof the filter aref(3200 A) Hz, A=last three numbers of your student number;sf p (3600+B) Hz;B=the last three number of your student number ;passband ripple 0.5dB;min imum stopband attenuation (50+last number of the student number) dB;fT 20kHz.(1) Select a direct-form symmetric structure ;(2) Using Kaiser or other windows ;(3) Sketch the frequency and phase response of the filters;(4) Give the impulse response hn.同样的,按照相应的要求,在 FDA TOOL中填好相应的参数,就能设计出需要的滤波器了。幅度相位波形如下:频率响
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- GB/T 23445-2025聚合物水泥防水涂料
- 2026年中山市民众锦标学校教师招聘备考题库及1套参考答案详解
- 2026年寻找热爱教育的您四川工商学院诚聘英才备考题库及答案详解一套
- 2025年度铁岭市定向招聘退役高校毕业生士兵备考题库及1套完整答案详解
- 2026年四川省地方水利电力建设有限公司招聘备考题库及答案详解一套
- 2026年北海市银海区西塘社区卫生服务中心招聘备考题库及参考答案详解1套
- 2026年复旦大学附属肿瘤医院王红霞教授课题组招聘研究助理备考题库及1套完整答案详解
- 2026年国家电投集团水电产业平台公司筹备组人员公开选聘26人备考题库及一套完整答案详解
- 2026年复旦大学药学院招聘新引进团队临床研究科研助理岗位2名备考题库及参考答案详解一套
- 2026年中国(黑龙江)自由贸易试验区哈尔滨片区管理局招聘备考题库带答案详解
- 《城市轨道交通 边缘计算服务 技术规范》
- 中国对外贸易中心集团有限公司招聘笔试
- 半挂车安全培训教材课件
- 2025年公共卫生考试的热点问题试题及答案
- 汽轮机安装施工方案与安全措施
- 国开2025年人文英语4写作形考答案
- 2025秋苏教版(2024)小学科学二年级上册(全册)教学设计(附目录P123)
- 光伏基础吊装施工方案
- 合肥市瑶海区S社区居家养老服务站建设研究:现状、问题与优化路径
- 果园防草布采购合同范本
- 《黄土原位测试规程》
评论
0/150
提交评论