完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
load x;
wp=0.3*pi;ws=0.4*pi; ap=1;as=20; wap=tan(wp/2);was=tan(ws/2); [n,wc]=buttord(wap,was,ap,as,'s'); [z,p,k]=buttap(n); [bp,ap]=zp2tf(z,p,k); [bs,as]=lp2lp(bp,ap,wc); [bz,az]=bilinear(bs,as,0.5); y=filter(bz,az,x); freqz(y); figure:plot(abs(freqz(y)));低通 load x; wp=0.8*pi;ws=0.7*pi; ap=1;as=15; wap=tan(wp/2);was=tan(ws/2); wap1=1;was1=wap/was; [n,wn]=buttord(wap1,was1,ap,as,'s'); [z,p,k]=buttap(n); [bp,ap]=zp2tf(z,p,k); [bs,as]=lp2hp(bp,ap,wap); [bz,az]=bilinear(bs,as,0.5); y=filter(bz,az,x); freqz(y); figure:plot(abs(freqz(y)));高通 load x; wp1=0.4*pi;wp2=0.6*pi; ap=1,as=40; ws1=0.3*pi;ws2=0.7*pi; wap1=tan(wp1/2);wap2=tan(wp2/2); was1=tan(ws1/2);was2=tan(ws2/2); wp0=1;ws0=(was2-was1)/(wap2-wap1); w0=(wap1*wap2).^(1/2); bw=wap2-wap1; [n,wn]=buttord(wp0,ws0,ap,as,'s'); [bp,ap]=butter(n,wn,'s'); [bs,as]=lp2bp(bp,ap,w0,bw); [bz,az]=bilinear(bs,as,0.5); y=filter(bz,az,x); freqz(y); figure:plot(abs(freqz(y)));带通 |
|
相关推荐
1个回答
|
|
上下图怎么对应的,例如低通,低通1图怎么对应
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
使用simulink进行三相短路故障分析时,各参数应该如何设置
1369 浏览 1 评论
想请教一下图中是simulink的什么模块,需要这种三段斜率函数模块但没找到在哪
1477 浏览 1 评论
2393 浏览 1 评论
200圆!求助大佬给一份VSG并网和离网模式的simulink仿真
2658 浏览 0 评论
MATLAB(3)--矩阵的引用(sub2ind、ind2sub、reshape函数使用)
3489 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 01:35 , Processed in 0.687427 second(s), Total 96, Slave 78 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号