EEG raw data band filtering using matlab

烂漫一生 提交于 2019-12-04 12:40:46

You may try to use EEGLab, an open source environment for electrophysiological signal processing with matlab. This toolbox accepts text input such as yours, and has several filtering method like

function EEGfiltered = eeg_filter(EEGinput,sample_freq,lcf,hcf,order);

% eeg_filter - apply a butterworth polynomial filter
% 
%   Usage : EEGfiltered = eeg_filter(EEGinput,sample_freq,lcf,hcf,order)
%
%   - input arguments 
%       EEGinput    : eeg data - M samples x N channels x P epochs
%       sample_freq : sampling frequency
%       lcf         : low cutoff frequency (highpass, default 0.01)
%       hcf         : high cutoff frequency (lowpass, default 40)
%       order       : butterworth polynomial order (default 2)
%
%   - output argument
%       EEGfiltered : filtered EEGinput;

Beware of the specificity of EEG data processing. For example, the filtfilt function baselines on the last point of the timeseries, so it is necessary to call eeg_baseline after filtering. Following the EEGLab tutorial will avoid many drawbacks.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!