婴儿的眼泪
2012-02-29, 10:32
这一段程序在网上找的,运行没有问题,画出来的图的确是Fp在1000,Fs在1200的数字滤波器,只是我搞不懂bilinear那一行为什么最后一个参数是0.5? 我搜索bilinear函数的用法:[bz,az]=bilinear(b,a,Ft) 不应该是0.5啊!!!有谁可以告诉我是为什么吗?
Ft=8000; 采样频率
Fp=1000;
Fs=1200;
wp=tan(pi*Fp/Ft);
ws=tan(pi*Fs/Ft);
[n,wc]=buttord(wp,ws,1,50,'s');
[b,a]=butter(n,wc,'s');
[numll,denll]=bilinear(b,a,0.5); 有问题的一行
[h,w]=freqz(numll,denll);
plot(w*8000*0.5/pi,abs(h));
grid
Ft=8000; 采样频率
Fp=1000;
Fs=1200;
wp=tan(pi*Fp/Ft);
ws=tan(pi*Fs/Ft);
[n,wc]=buttord(wp,ws,1,50,'s');
[b,a]=butter(n,wc,'s');
[numll,denll]=bilinear(b,a,0.5); 有问题的一行
[h,w]=freqz(numll,denll);
plot(w*8000*0.5/pi,abs(h));
grid