How to correctly apply bandpass filter to EEG data?

조회 수: 69 (최근 30일)
Ali Al-Saegh
Ali Al-Saegh 2020년 6월 29일
편집: Star Strider 2023년 10월 29일
I have 25-electrodes EEG data, I used bandpass(myData, [0.5 40], 250) to apply a simple bandpass filtering on the data I have. I do not know why some time delay is exist after the application of the filter.

답변 (1개)

Star Strider
Star Strider 2020년 6월 29일
편집: Star Strider 2023년 10월 29일
The bandpass function (and its friends) in my experience have all used filtfilt to do the actual filtering, so there should not be any delay or phase distortion.
You can check it with:
[myFilteredData, bpdf] = bandpass(myData, [0.5 40], 250);
then:
myFilteredData2 = filtfilt(bpdf, myData);
and see if there is a difference when you plot them.
EDIT — (29 Oct 2023 at 21:58)
The bandpass function (and its friends) will always return an efficient elliptic filter if the 'ImpulseResponse','iir' name-value pair is added to the argument list:
[myFilteredData, bpdf] = bandpass(myData, [0.5 40], 250, 'ImpulseResponse','iir');
.

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by