BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / matlab / #4589同步于 2009/1/2
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖

[求助]matlab巴特沃兹滤波器的阶数

sylph
2009/1/2镜像同步13 回复
问下已知阻带的最大增益e=0.03,过渡带范围f2-f1=50hz,截止频率是1000hz,怎样求巴特沃兹滤波器的阶数~~ 谢了 还有谁能告诉我什么叫阻带的最大增益??
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
ltx1215机器人#1 · 2009/1/2
巴特沃兹的阶数是通过这个函数[n,wn]=buttord(wp/(fs/2),ws/(fs/2),rp,rs);%fs是采样频率。然后在M文件里面写入这个fprintf('Order of the fiter=%.Of\n',N)就可以显示出阶数 哎 图书馆里面的有关书基本全看完了 都没有关于这个的 然后网上也找了好几天都没找到 也学过信号与系统 所以同求了!
zixu1986机器人#2 · 2009/1/3
同求什么?你不是把答案都说出来了么? buttord Butterworth filter order and cutoff frequency Syntax [n,Wn] = buttord(Wp,Ws,Rp,Rs) [n,Wn] = buttord(Wp,Ws,Rp,Rs,'s') 第一种是数字的 第二种是连续的 看lz的题目应该是连续的 n即为阶数 [n,Wn] = buttord(Wp,Ws,Rp,Rs) returns the lowest order, n, of the digital Butterworth filter that loses no more than Rp dB in the passband and has at least Rs dB of attenuation in the stopband. The scalar (or vector) of corresponding cutoff frequencies, Wn, is also returned. Use the output arguments n and Wn in butter. 具体参数怎么用 help里面有个表 【 在 ltx1215 的大作中提到: 】 : 巴特沃兹的阶数是通过这个函数[n,wn]=buttord(wp/(fs/2),ws/(fs/2),rp,rs);%fs是采样频率。然后在M文件里面写入这个fprintf('Order of the fiter=%.Of\n',N)就可以显示出阶数 哎 图书馆里面的有关书基本全看完了 都没有关于这个的 然后网上也找了好几天都没找到 也学过信号与系统 所以同求了!
zixu1986机器人#3 · 2009/1/3
阻带的最大增益就是阻带相比于通带的增益 单位应该是dB 【 在 sylph 的大作中提到: 】 : 问下已知阻带的最大增益e=0.03,过渡带范围f2-f1=50hz,截止频率是1000hz,怎样求巴特沃兹滤波器的阶数~~ : 谢了 : 还有谁能告诉我什么叫阻带的最大增益??
ltx1215机器人#4 · 2009/1/3
【 在 zixu1986 的大作中提到: 】 : 同求什么?你不是把答案都说出来了么? : buttord : Butterworth filter order and cutoff frequency : ................... 这个嘛 我同求的是这个公式里面并没有阻带增益这个东东 而且带宽在哪里设置?
ltx1215机器人#5 · 2009/1/3
【 在 zixu1986 的大作中提到: 】 : 阻带的最大增益就是阻带相比于通带的增益 单位应该是dB 能再详细点吗 看不大懂 如果是比例运算的话 db/db 单位就不是DB了
zixu1986机器人#6 · 2009/1/3
Wp Passband corner frequency Wp, the cutoff frequency, is a scalar or a two-element vector with values between 0 and 1, with 1 corresponding to the normalized Nyquist frequency, pi radians per sample. 通带频率 即截止频率 用Nyquist频率归一化 Ws Stopband corner frequency Ws, is a scalar or a two-element vector with values between 0 and 1, with 1 corresponding to the normalized Nyquist frequency. 阻带频率 Rp Passband ripple, in decibels. This value is the maximum permissible passband loss in decibels. 通带损失 Rs Stopband attenuation, in decibels. This value is the number of decibels the stopband is down from the passband. 阻带损失 You specify the frequencies Wp and Ws similar those described in the Table , Description of Stopband and Passband Filter Parameters table above, only in this case you specify the frequency in radians per second, and the passband or the stopband can be infinite. 对于模拟的 通带和阻带的频率单位是弧度每秒 增益是指功率比 而dB单位的意思就是功率比 比如说系统的增益是3dB 就是说输出的功率是输入功率的2倍 这个题目的几个参数应该是 Wp = 1000*2*pi Ws = (1000+50)*2*pi Rp = 这个题目没说 应该可以随便设一个 Rs = 15.2 【 在 ltx1215 的大作中提到: 】 : 能再详细点吗 看不大懂 如果是比例运算的话 db/db 单位就不是DB了
zixu1986机器人#7 · 2009/1/3
还有 到底想要求什么样的滤波器? 刚才那个是根据低通求的 高通的 带通 带阻的又不一样
gbbibib机器人#8 · 2009/1/3
The cutoff frequencies must be within the interval of (0,1) 我按上面的做了一下,但是出现这个错误。这个是什么意思啊??是不是Rp有取值的范围??
ltx1215机器人#9 · 2009/1/3
【 在 gbbibib 的大作中提到: 】 : The cutoff frequencies must be within the interval of (0,1) : 我按上面的做了一下,但是出现这个错误。这个是什么意思啊??是不是Rp有取值的范围?? Wp,Ws是归一化频率,范围是[0,1],对应 弧度 归一化处理: Wp(或Ws)/(fs/2)