📄 program_9_3.m
字号:
% Program 9_3
% Coefficient Quantization Effects on the
% Frequency Response of a Direct Form FIR Filter
%
fpts =3D [0 0.5 0.55 1]; mag =3D [1 1 0 0];
b =3D remez(39,fpts,mag);
[h,w] =3D freqz(b,1,512); g =3D 20*log10(abs(h));
bq =3D a2dT(b,5);
[hq,w] =3D freqz(bq,1,512); gq =3D 20*log10(abs(hq));
plot(w/pi,g,'b',w/pi,gq,'r:');grid
axis([0 1 -60 5]);
xlabel('\omega/\pi');ylabel('Gain, dB');
title('original - solid line, quantized - dashed = line');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -