滤波器设计问题
设计-巴特沃思带通滤波器,其3dB边界频率分别为f2=110kHz和f1=90kHz,在阻带f3=120kHz处的最小衰减大于10dB,采样频率fs=400kHz。请用双线性变换法设计该带通滤波器,
clear,clc
dt=0.01;Fs=400;
w1=2*Fs*tan(2*pi*90/(2*Fs));
w2=2*Fs*tan(2*pi*110/(2*Fs));
wr=2*Fs*tan(2*pi*120/(2*Fs));
=buttord(,,3,10,'s');
=butter(N,wn,'s');
=bilinear(B,A,Fs);
=freqz(num,den);
f=w/pi*200;
plot(f,20*log(abs(h)));
axis();
grid;
为什么我运行的时候用出现以下错误
??? Error using ==> buttord
The cutoff frequencies must be non-negative for analog filters.
哪位大哥大姐懂的,请帮帮我,小弟在做毕业设计,很急啊!!!!!
[ 本帖最后由 ChaChing 于 2009-3-10 22:10 编辑 ] Help buttord
Passband corner frequency Wp, the cutoff frequency, (and 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
回复 沙发 ChaChing 的帖子
你好,可以给我介绍一本比较好的学习用Matlab处理信号的书吗??谢谢啊!!回复 板凳 小黑 的帖子
汗! 个人并非这方面的专家!只是看看help文档, 随便试试而已, 混得用!
页:
[1]