image thumbnail
from kaiser FIR by zhang yong
Including Bandpass,Highpass,Lowpass FIR

hd=ideal_lp(wc,N);
function hd=ideal_lp(wc,N);
alpha=(N-1)/2;		%Ӧλ
n=[0:1:(N-1)];
m=n-alpha+eps;		%epsȷĸǷ
hd=sin(wc*m)./(pi*m);

Contact us at files@mathworks.com