필터 지우기
필터 지우기

How to set the order in iircomb filter?

조회 수: 6 (최근 30일)
NASRIN AKTER
NASRIN AKTER 2021년 9월 8일
답변: Chunru 2021년 9월 9일
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에서 Digital Filter Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by