clear;
clc;
wc=0.3*pi; %圆周截止频率
order=32;
N=64;
beta=3.39;
window=kaiser(order+1,beta);
b=fir1(order,wc/pi,'low',window);
figure(1),
freqz(b);
[h,t]=impz(b,[1],N);
figure(2),
plot(t,h); %冲激响应
[h,w]=freqz(b,[1],N); %频率响应
figure(3),
plot(w/pi,20*log10(abs(h)));grid;
温馨提示:答案为网友推荐,仅供参考