原帖由 rockzone 于 2007-10-16 17:14 发表
研究了,和我最初的想法还是一样。
等待高手的解答
首先声明:我不是高手。不过我对你的研究态度有些怀疑:
(1)你所以理解的3db说得是滤波器的通带截至频率Wn,英文名字cutoff frequency Wn
(2)问题出在besself函数上,刚开是没仔细看,我也弄错了。help besself会发现:
[B,A] = BESSELF(N,Wo) designs an N'th order lowpass analog Bessel
filter and returns the filter coefficients in length N+1 vectors B and
A. The frequency Wo is the frequency up to which the group delay is
approximately constant.你的程序里用了Wn,这样他和截止频率以及3db完全扯不上关系!
关于滤波器的群延迟计算,以及设计任意群延迟频率的滤波器的方法参看下边的这个分例子- %Example -- Using iirgrpdelay to Design a Lowpass Elliptic Filter with Equalized Group Delay
- %The following code designs a pair of filters that together create a lowpass filter with equalized group delay.
- [be,ae] = ellip(4,1,40,0.2); % Lowpass filter
- f = 0:0.001:0.2;
- g = grpdelay(be,ae,f,2);
- g1 = max(g)-g;
- [b,a,tau] = iirgrpdelay(8, f, [0 0.2], g1); % Phase compensator
- gd = grpdelay(b,a,f,2);
- plot(f, g); hold on; plot(f, g+gd, 'r'); hold off;
复制代码 例子摘自Filter Design Toolbox iirgrpdelay Examples
里边句子的具体含义,你对照函数的help 文档慢慢理解吧。做学问嘛,就要脚踏实地,一步一步来。
[ 本帖最后由 花如月 于 2007-10-16 21:30 编辑 ] |