How to set the order in iircomb filter?
3 ビュー (過去 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?
0 件のコメント
採用された回答
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
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Filter Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!