- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Diff:对一个向量中的连续元素求微分
实习二 滤波器设计
本次实习内容主要包括以下三部分内容,目的是通过matlab滤波器设计函数的使用,了解IIR和FIR滤波器的设计及特性,明白信号滤波前后的变化原因,简单了解matlab仿真模块中信号分析与处理的使用,完成系统仿真和直观显示信号波形,更好地学习和理解信号分析与处理的相关理论。
一、了解以下有关滤波器设计函数
1、IIR滤波器设计(巴特沃斯滤波器、切比雪夫滤波器I型和II型)
(1)buttord
[n,Wn] = buttord(Wp,Ws,Rp,Rs)
[n,Wn] = buttord(Wp,Ws,Rp,Rs,s)
例1
For data sampled at 1000 Hz, design a lowpass filter with less than 3 dB of ripple in the passband, defined from 0 to 40 Hz, and at least 60 dB of attenuation in the stopband, defined from 150 Hz to the Nyquist frequency (500 Hz). Plot the filters frequency response:
实现代码:
Wp = 40/500; Ws = 150/500;
[n,Wn] = buttord(Wp,Ws,3,60)
[b,a] = butter(n,Wn);
freqz(b,a,512,1000); % Frequency response of filter
title(n=5 Butterworth Lowpass Filter)
例2
Next design a bandpass filter with passband of 60 Hz to 200 Hz, with less than 3 dB of ripple in the passband, and 40 dB attenuation in the stopbands that are 50 Hz wide on both sides of the passband:
实现代码:
Wp = [60 200]/500; Ws = [50 250]/500;
Rp = 3; Rs = 40;
[n,Wn] = buttord(Wp,Ws,Rp,Rs)
[b,a] = butter(n,Wn);
freqz(b,a,128,1000)
title(n=16 Butterworth Bandpass Filter)
(2)butter:Butterworth analog and digital filter design
使用语法:
[z,p,k] = butter(n,Wn)
[z,p,k] = butter(n,Wn,ftype)
[b,a] = butter(n,Wn)
[b,a] = butter(n,Wn,ftype)
[A,B,C,D] = butter(n,Wn)
[A,B,C,D] = butter(n,Wn,ftype)
[z,p,k] = butter(n,Wn,s)
[z,p,k] = butter(n,Wn,ftype,s)
[b,a] = butter(n,Wn,s)
[b,a] = butter(n,Wn,ftype,s)
[A,B,C,D] = butter(n,Wn,s)
[A,B,C,D] = butter(n,Wn,ftype,s)
例1
Highpass Filter
For data sampled at 1000 Hz, design a 9th-order highpass Butterworth filter with cutoff frequency of 300 Hz, which corresponds to a normalized value of 0.6:
实现代码:
[z,p,k] = butter(9,300/500,high);
[sos,g] = zp2sos(z,p,k); % Convert to SOS(二阶因子)form
Hd = dfilt.df2tsos(sos,g); % Create a dfilt object
h = fvtool(Hd); % Plot magnitude response
set(h,Analysis,freq) % Display frequency response
(3)cheb1ord:Chebyshev Type I filter order
使用语法:
[n,Wp] = cheb1ord(Wp,Ws,Rp,Rs)
[n,Wp
您可能关注的文档
- ApplicationNote1547LM2771EvaluationBoard(cn)-德州仪器.PDF
- Android系统移植和驱动开发-华清远见.PDF
- ARM9:如何将linux天嵌科技.DOC
- AQ1012005煤矿在用空气压缩机安全检测检验规范-中国船级社.PDF
- ARM系列内核介绍.PDF
- AC-DC和DC-DC峰值电流模式转换器支持反激-MaximIntegrated.PDF
- ARM嵌入式系统教案3.PPT
- Android简易编译安装指引.DOC
- Android开发环境建置与设定.PPT
- ATCC2011年8月月报-ATCC奥奔文化.DOC
- 肉毒素行业报告:竞争格局向好,看好具有先发优势的龙头.pdf
- 电子行业大光学VR/AR:洞察VR/AR蓝海,解锁上游供应格局.pdf
- 纺织服装行业:从美国制服行业龙头信达思成长史看中国制服行业未来发展.pdf
- 免税行业报告:升级回流东风起,免税消费程万里.pdf
- 医药行业生命科学服务产业链“卖水人”之:从生物试剂进口替代看大国科研创新崛起.pdf
- 食品饮料行业:时代性大趋势之海底捞与牧原股份比较研究,顺势而为,向阳生长.pdf
- 人口转型与新消费:人口结构转型背景下共同富裕利好哪些领域.pdf
- 汽车与零部件行业研究:软件定义汽车,L4核心玩家前瞻.pdf
- 从瑞可达看连接器行业新趋势:乘新能源汽车东风,连接器迎行业新机.pdf
- 国内外轴承行业市场格局.pdf
文档评论(0)