摘录自《软件无线电》
常用的滤波器系数设计命令:remez,cremez,firls,fir1,fir2,butter,cheby1,cheby2,ellip
实例:带通滤波器
% bandex.m design a bandpass filter and plot frequency response
fbe=[0 0.24 0.26 0.74 0.76 1]; % frequency band edges as
% fraction of Nyquist frequency
damps=[0 0 1 1 0 0]; % desired amplitudes at band edges
fl=30; % filter size
b=remez(fl,fbe,damps); % b is the designed impulse response
freqz(b) % plot frequency response to check design
继续学习中……
文章评论(0条评论)
登录后参与讨论