📄 ap.m
字号:
% By using the function fir2, design an allpass filter
% The input parameter N is the order of the filter, N+1
% is the length of the filter. N is odd.
function B = ap(N)
F = [0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.95,0.96,0.97,0.98,0.99,1];
M = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0];
B = fir2(N,F,M);
[H,W] = freqz(B,1,2000);
semilogy(W,abs(H))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -