lpfilttest.m
来自「Mathematical Methods by Moor n Stiling.」· M 代码 · 共 22 行
M
22 行
% test the linear programming filter design
% Copyright 1999 by Todd K. Moon
n=45;
[h,delta ] = lpfilt(0.1, 0.12, n);
[H,w] = freqz(h,1,256);
subplot(2,2,1)
plot(w/(2*pi),20*log10(abs(H)));
axis([0 .5 -80 10])
xlabel('frequency (0.5=Nyquist)')
ylabel('Magnitude (dB)');
subplot(2,2,2)
stem(0:n-1,h);
xlabel('n');
ylabel('h[n]');
axis([0 45 -.1 .3])
print -dps ../pictures/lpfilt.ps
print -deps ../pictures/lpfilt.eps
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?