Help not sure what I am doing! need a starting point for digital filters
7 views (last 30 days)
Show older comments
Courtney Milner
on 26 Oct 2013
Commented: Courtney Milner
on 26 Oct 2013
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
0 Comments
Accepted Answer
Youssef Khmou
on 26 Oct 2013
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);
More Answers (0)
See Also
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!