|
20资产
Fs = 2e8; % sample rate
R = 5; % decimator factor
D = 1; % differential delay
Fp = 4e6; % pass band
Fstp = 16e6; % stop band
Ap = 0.01; % attenuation in pass band
Astp = 100; % attenuation in stop band
hcic = design(fdesign.decimator(R,'cic',D, Fp, Astp, Fs),'SystemObject',true);
cic_comp = design(fdesign.ciccomp(hcic.DifferentialDelay, ...
hcic.NumSections,Fp,Fstp,Ap,Astp,Fs/R), 'SystemObject',true);
hvft=fvtool(hcic,cic_comp,...
cascade(hcic,cic_comp),'ShowReference','off','Fs',[Fs Fs/R Fs])
legend(hvft,'CIC Decimator','CIC Compensator','Resulting Cascade Filter');
运行代码后,工作区生成如下
|
|