How to set the order in iircomb filter?

9 次查看(过去 30 天)
Hello
I am trying to get rid of the fundamental (1.1 MHz) and 6 harmonics (2.2 MHz, 3.3 MHz...6.6 MHz) from my signal sampled at 250 Msamples/s. IHow should I set the order of the 'iircomb' filter since it is supposed to be a positive integer?

采纳的回答

Chunru
Chunru 2021-9-9
The order of the IIR notch filter (using iircomb) is determined by the number of notches (equal to filter order plus 1). The sampling frequency should be integer multiples of the fundamental frequency. The sharpneess of the notch will determin the bandwidth. You may need to resample your data to a new sampling frequency as shown below. It seems that you also have a quite higher order IIR filter.
If your just want to get away of 6 harmonics, an alternative is to cascade 6 "iirnotch" filters. doc iirnotch for details.
fo = 1.1e6;
fs = ceil(250e6/fo)*fo
fs = 250800000
q = 40; % Q facctor of the notch
bw = (fo/(fs/2))/q;
[b,a] = iircomb(fs/fo,bw,'notch'); % Note type flag 'notch'
Use the Filter Visualization Tool (fvtool) to generate the plot showing the filter notches.
freqz(b,a, 8192*4, fs)It

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Filter Design 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by