📄 p311.m
字号:
%program p311
wp=0.5*pi;
ws=0.66*pi;
width=ws-wp;%width of transition band
N=ceil(8*pi/width);%the length of the filter
if(rem(N,2))==0
N=N+1;
end
Nw=N;%the length of the filter
wc=(wp+ws)/2;%cutoff freq.of the filter
n=0:N-1;
alpha=(N-1)/2;
m=n-alpha+0.00001;
hd=sin(wc*m)./(pi*m);
win=hanning(Nw);
h=hd.*win';
b=h;
freqz(b,1,512);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -