📄 p10_9.m
字号:
% Program P10_9% Design of L-th Band FIR Filter Using the % Windowed Fourier Series Approach%clf;K = 11;n = -K:K;% Generate the truncated impulse response of % the ideal lowpass filterb = sinc(n/2)/2;% Generate the window sequencewin = hamming(23);% Generate the coefficients of the windowed filterfil = b.*win';c = fil/sum(fil);% Plot the gain response of the windowed filter[h,w] = freqz(c,1,256);g = 20*log10(abs(h));plot(w/pi,g);axis([0 1 -90 10]); gridxlabel('\omega/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -