ideal_bs.m
来自「matlab应用实例。如:FIR、IIR数字滤波器设计等。」· M 代码 · 共 12 行
M
12 行
function hd=ideal_bs(Wcl,Wch,N)
% compute the ideal bandstop fiter unit pulse respondence hd(n)
% wcl: low cutoff frequency
% wch: high cutoff frequency
% N: window length
% hd: unit pulse respondence
alpha = (N-1)/2;
n = 0:1:N-1;
m = n-alpha+eps;
hd = [sin(Wcl*m)+sin(pi*m)-sin(Wch*m)]./(pi*m);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?