- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
演示IIR滤波器的频带变换
演示 IIR 滤波器的频带变换
% G031.M
% 本程序演示 IIR 滤波器的频带变换
% 模拟低通原型滤波器可以是以下 4 种滤波器中的任意一种,即 : 巴特沃思、切比雪夫 1 型、切比雪夫 2 型和椭圆滤波器
% 目标数字滤波器可以是以下 4 种滤波器中的任意一种,即 : 低通、高通、带通和带阻
%
h_fig1 = figure;
set(h_fig1, unit, normalized, position, [0.0, 0.0, 0.99, 0.94]);
set(h_fig1, defaultuicontrolunits, normalized);
h_text1 = uicontrol(gcf, Style, text, Position, [0.0, 0.91, 0.92, 0.07],...
String, IIR 滤波器的频带变换 , FontName, 黑体, ForegroundColor, r, ...
FontSize, 35, FontWeight, Bold, BackgroundColor, [1, 1, 1]); set(gcf, color, w)
hlist1 = uicontrol(gcf, Style, list, FontSize, 14, FontWeight, Bold,...
position,[0.76,0.53,0.2,0.15],...
string,巴特沃思|切比雪夫 1 型|切比雪夫 2 型|椭圆,...% 22
Max,2);
hlist2 = uicontrol(gcf, Style, list, FontSize, 14, FontWeight, Bold,...
position,[0.76,0.23,0.2,0.15],...
string,低通数字滤波器|高通数字滤波器|带通数字滤波器|带阻数字滤波器,...% 22
Max,2)% 23
htext1 = uicontrol(gcf, Style, text, FontSize, 14, FontWeight, Bold,...
position,[0.76,0.684,0.2,0.05],...
string,滤波器类型);
htext2 = uicontrol(gcf, Style, text, FontSize, 14, FontWeight, Bold,...
position,[0.76,0.384,0.2,0.05],...
string,频带选择);
h_axes00 = axes(Box, on, Position, [0.08, 0.52, 0.65, 0.32], FontSize, 8)
h_axes01 = axes(Box, on, Position, [0.08, 0.07, 0.65, 0.32], FontSize, 8)
h_pushbutton1 = uicontrol(h_fig1, Style, PushButton, Position, [0.76, 0.1, 0.06, 0.06],...
string, 运行, BackgroundColor, [0.8 0.9 0.8], ForegroundColor, r, FontSize, 14, FontWeight, Bold,...
callback, cb03(hlist1, hlist2, h_axes00, h_axes01))
h_pushbutton2 = uicontrol(h_fig1, Style, PushButton, Position, [0.9, 0.1, 0.06, 0.06],...
string, 退出, BackgroundColor, [0.8 0.9 0.8], ForegroundColor, r, FontSize, 14, FontWeight, Bold,...
callback, delete(h_fig1),)
set(gcf,color,w);
wp = 0.2*pi; ws = 0.3*pi; Rp = 1; As = 30;
Ts = 1; Fs = 1/Ts;
OmigaP = (2/Ts)*tan(wp/2); OmigaS = (2/Ts)*tan(ws/2);
[cs, ds] = afd_butt(OmigaP,Omiga
文档评论(0)