AD9361滤波器仿真

2021/9/15 23:36:57

本文主要是介绍AD9361滤波器仿真,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

AD9361的数字滤波器HB1,HB2,HB3/DEC3均为固定系数的数字滤波器,其对应的幅频特性如下所示:

仿真代码:

H_len=2048;
hb1=[-8,0,42,0,-147,0,619,1013,619,0,-147,0,42,0,-8];
hb2= [-9,0,73,128,73,0,-9];
hb3=[1,4,6,4,1];
dec3=[55,83,0,-393,-580,0,1914,4041,5120,4041,1914,0,-580,-393,0,83,55];
%hb1频率响应
[H1_fir,w]=freqz(hb1,1,H_len,'whole');
figure(1)
subplot(4,1,1)
plot(w/pi,20*log10(abs(H1_fir)));
grid on;
xlabel('\omega/\pi');
ylabel('Gain,in dB')
title('HB1频率响应');
%hb2频率响应
[H2_fir,w]=freqz(hb2,1,H_len,'whole');
subplot(4,1,2)
plot(w/pi,20*log10(abs(H2_fir)));
grid on;
xlabel('\omega/\pi');
ylabel('Gain,in dB')
title('HB2频率响应');
%hb3频率响应
[H3_fir,w]=freqz(hb3,1,H_len,'whole');
subplot(4,1,3)
plot(w/pi,20*log10(abs(H3_fir)));
grid on;
xlabel('\omega/\pi');
ylabel('Gain,in dB')
title('HB3频率响应');
%dec3频率响应
[DEC3_fir,w]=freqz(dec3,1,H_len,'whole');
subplot(4,1,4)
plot(w/pi,20*log10(abs(DEC3_fir)));
grid on;
xlabel('\omega/\pi');
ylabel('Gain,in dB')
title('DEC3频率响应');



这篇关于AD9361滤波器仿真的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程