zzpanda 发表于 2008-12-17 14:10

一个滤波器的问题

butter函数的帮助文件里,有这样一个例子:
Design a 10th-order bandpass Butterworth filter with a passband from 100 to 200 Hz and plot its impulse response
代码如下:
n = 5; ?请教一下,n=5还是10?
Wn = /500;
= butter(n,Wn);
= impz(b,a,101);

ChaChing 发表于 2008-12-17 16:02

10th-order, n=10
笔误吧!

zzpanda 发表于 2008-12-17 16:24

多谢

呵呵,因为看到另一个帮助文件里例子:
Design a 10th-order bandpass Chebyshev Type I filter with a passband from 100 to 200 Hz and plot its impulse response:
n = 10;   有点懵了,不知道以哪个为准
Rp = 0.5;
Wn = /500;
= cheby1(n,Rp,Wn);
= impz(b,a,101); stem(t,y)
页: [1]
查看完整版本: 一个滤波器的问题