![实验报告基于MATLAB的数字滤波器设计_第1页](http://file1.renrendoc.com/fileroot_temp2/2020-9/24/9518a710-2b60-4d2d-973e-990d185be260/9518a710-2b60-4d2d-973e-990d185be2601.gif)
![实验报告基于MATLAB的数字滤波器设计_第2页](http://file1.renrendoc.com/fileroot_temp2/2020-9/24/9518a710-2b60-4d2d-973e-990d185be260/9518a710-2b60-4d2d-973e-990d185be2602.gif)
![实验报告基于MATLAB的数字滤波器设计_第3页](http://file1.renrendoc.com/fileroot_temp2/2020-9/24/9518a710-2b60-4d2d-973e-990d185be260/9518a710-2b60-4d2d-973e-990d185be2603.gif)
![实验报告基于MATLAB的数字滤波器设计_第4页](http://file1.renrendoc.com/fileroot_temp2/2020-9/24/9518a710-2b60-4d2d-973e-990d185be260/9518a710-2b60-4d2d-973e-990d185be2604.gif)
![实验报告基于MATLAB的数字滤波器设计_第5页](http://file1.renrendoc.com/fileroot_temp2/2020-9/24/9518a710-2b60-4d2d-973e-990d185be260/9518a710-2b60-4d2d-973e-990d185be2605.gif)
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验78 基于MATLAB的数字滤波器设计实验目的:加深对数字滤波器的常用指标和设计过程的理解。实验原理:低通滤波器的常用指标:通带边缘频率:,阻带边缘频率: ,通带起伏:,通带峰值起伏: ,阻带起伏:,最小阻带衰减: 。数字滤波器有IIR和FIR两种类型,它们的特点和设计方法不同。 在MATLAB中,可以用b,a=butter(N,Wn)等函数辅助设计IIR数字滤波器, 也可以用b=fir1(N,Wn,ftype) 等函数辅助设计FIR数字滤波器。实验内容: 利用MATLAB编程设计一个数字带通滤波器,指标要求如下:通带边缘频率:,通带峰值起伏:。阻带边缘频率:,最小阻带衰减: 。 分别用I
2、IR和FIR两种数字滤波器类型进行设计。实验要求:给出IIR数字滤波器参数和FIR数字滤波器的冲激响应,绘出它们的幅度和相位频响曲线,讨论它们各自的实现形式和特点。实验内容:IRR代码:wp=0.45*pi,0.65*pi;ws=0.3*pi,0.75*pi;Ap=1;As=40;N,Wc=buttord(wp/pi,ws/pi,Ap,As) ;b,a=butter(N,Wc)%b,a = butter(n,Wn,ftype) H,w=freqz(b,a);subplot(211);mag=abs(H);plot(w/pi,mag); xlabel(角频率(w);ylabel(幅度|Ha(jw
3、)|);title(IIR|Ha(jw)|);grid on;subplot(212);phase=angle(H);plot(w/pi,phase);xlabel(角频率(w);ylabel(相位);title(IIR相位响应曲线);grid on;图像:FIR代码: wp1 = 0.4*pi; wp2 = 0.6*pi; ws1 = 0.3*pi; ws2 = 0.7*pi; tr_width = min(wp1-ws1),(ws2-wp2) tr_width =0.3142 M = ceil(6.2*pi/tr_width) + 1 M = 63 n=0:1:M-1; wc1 = (ws
4、1+wp1)/2; wc2 = (wp2+ws2)/2; wc=wc1/pi,wc2/pi; window= hanning(M); h1,w=freqz(window,1); figure(1); subplot(2,1,1) stem(window); axis(0 60 0 1.2); grid; xlabel(n); title(Hanning窗函数); subplot(2,1,2) plot(w/pi,20*log(abs(h1)/abs(h1(1); axis(0 1 -350 0); grid; xlabel(w/pi); ylabel(幅度(dB); title(Hanning窗函数的频谱); hn = fir1(M-1,wc, hanning (M); h2,w=freqz(hn,1,512); figure(2); subplot(2,1,1) stem(n,hn); axis(0 60 -0.25 0.25); grid; xlabel(n); ylabel(h(n); title(Hanning窗函数的单位脉冲响应); subplot(2,1,2) plot(w/pi,20*log(abs(h2)/abs(h2(1); grid; xlabel(w/pi); ylabel(幅度(dB); figure(3); phase=angle(h1); plo
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 【正版授权】 IEC 60793-1-32:2018 RLV EN Optical fibres - Part 1-32: Measurement methods and test procedures - Coating strippability
- 【正版授权】 IEC 60747-5-5:2020 EN-FR Semiconductor devices - Part 5-5: Optoelectronic devices - Photocouplers
- 【正版授权】 IEC 60745-2-3:2006 EN-FR Hand-held motor-operated electric tools - Safety - Part 2-3: Particular requirements for grinders,polishers and disk-type sanders
- 【正版授权】 IEC 60738-1:2022 EN-FR Thermistors - Directly heated positive temperature coefficient - Part 1: Generic specification
- 【正版授权】 IEC 60684-3-280:2010 EN-FR Flexible insulating sleeving - Part 3: Specifications for individual types of sleeving - Sheet 280: Heat-shrinkable,polyolefin sleeving,anti-tracking
- 【正版授权】 IEC 60679-2:1981 EN-FR Quartz crystal controlled oscillators - Part 2: Guide to the use of quartz crystal controlled oscillators
- 【正版授权】 IEC 60674-2:2016+AMD1:2019 CSV EN-FR Specification for plastic films for electrical purposes - Part 2: Methods of test
- 【正版授权】 IEC 60601-2-7:1998 EN Medical electrical equipment - Part 2-7: Particular requirements for the safety of high-voltage generators of diagnostic X-ray generators
- 【正版授权】 IEC 60601-2-50:2020 EN-FR Medical electrical equipment - Part 2-50: Particular requirements for the basic safety and essential performance of infant phototherapy equipment
- 【正版授权】 IEC 60601-2-33:2010+AMD1:2013 CSV EN-FR Medical electrical equipment - Part 2-33: Particular requirements for the basic safety and essential performance of magnetic resonanceequipme
- 应急第一响应人理论考试试卷(含答案)
- LED电子显示屏工艺流程
- 北师大版七年级数学竞赛试题(共4页)
- 美术《画夜景》教学反思
- 从车铣复合到完整加工
- 文控中心文件管理流程
- 修理厂喷漆承包合同
- 轮扣架支模体系材料量计算
- 《初二下学期期末家长会》主题班会ppt课件.ppt
- 经销商授权书最佳模板(共1页)
- (完整word)上海牛津英语六年级第二学期6B英语知识点汇总U1-U9,推荐文档
评论
0/150
提交评论