Help not sure what I am doing! need a starting point for digital filters

Hi there, I am a student research who has just collected some raw EEG data from participants in my study. I was told that I need to preform two different things to my data (1) an eightieth-order band-pass FIR digital filter between .3Hz and 60 Hz (2) an eightieth-order band-stop FIR digital filter between 58 Hz and 62Hz
I am in way over my head here and do not know where to even start...I was hoping that you may be able to give me some directions Thanks in advance Courtney

 採用された回答

Youssef  Khmou
Youssef Khmou 2013 年 10 月 26 日
Courtney,
If you have signal processing toolbox, you can start with :
% Band pass
b = fir1(8,[0.03 0.60]);
r=randn(500,1); % as EEG signal
y=filter(b,1,r);
figure, psd(y);
% Band stop
b = fir1(8,[0.03 0.60],'stop');
r=randn(500,1); % as EEG signal
y=filter(b,1,r);
figure, psd(y);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEEG/MEG/ECoG についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by