|
楼主 |
发表于 2009-5-18 11:33:52
|
显示全部楼层
我顺便把我写的代码给贴出来了,望高人指出到底是哪里出了问题
Fs = 6144000; % Input sampling frequency
Fpass = 21770; % Frequency band of interest
M = 16; % Decimation factor of CIC
Hcic = design(fdesign.decimator(M,'CIC',01,Fpass,120,Fs));
Hd = cascade(dfilt.scalar(1/gain(Hcic)),Hcic);
hb=fdesign.decimator(2,'halfband',148460,120,384000);
Hb=equiripple(hb);
d = fdesign.ciccomp(Hcic.DifferentialDelay, ...
Hcic.NumberOfSections,Fpass,74230,.01,120,192000);
Hdc=design(d);
filter1=cascade(Hd,Hb,Hdc);
fvtool(filter1) |
|