how to do digital filter on this EEG data
이전 댓글 표시
Hi! I recently recorded an EEG signal at 50K Hz sampling rate. The signal was band passed at 1-500Hz before it was digitalized. Now I wanted to do a digital fitlering to this data, which is a low pass filter to cut off bands with frequency larger than 10Hz. But I found it hard to achieve. My code was like this:
filter_n=20*sample_rate;
cutoff=10; %cutoff frequency
lowpass=fir1(filter_n,cutoff*2/sample_rate,'low');
y_lowpass=filter(lowpass,1,y);
But I found the low-passed signal still had much power in bands larger than 10Hz. Can someone help me out? Thanks!
채택된 답변
추가 답변 (1개)
Wayne King
2012년 7월 26일
0 개 추천
I think Honglei has given you good advice. And I do think you should consider downsampling your data with decimate.m, or resample.m, provided you have enough data.
50 kHz is way oversampled for EEG data. Usually most of the interesting features in the EEG are below 100 Hz.
댓글 수: 2
Haoran Xu
2012년 7월 26일
Honglei Chen
2012년 7월 26일
To see the power spectrum, you don't have to do the low pass filtering. Unless the noise in the high frequency band is too strong and makes it difficult for you to identify what you want to see.
카테고리
도움말 센터 및 File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!