EEGFILT (high|low|band)pass filter EEG data using two-way least-squares FIR filtering. Multiple data channels and epochs supported. (Requires the Signal Processing Toolbox)

Usage: >> [smoothdata] = eegfilt(data,srate,locutoff,hicutoff);
>> [smoothdata,filtwts] = eegfilt(data,srate,locutoff,hicutoff, epochframes,filtorder);

Inputs:
data   
(channels,frames*epochs) data to filter
srate   
data sampling rate (Hz)
locutoff   
low edge frequency in pass band (Hz) {0 -> lowpass}
hicutoff   
high edge frequency in pass band (Hz) {0 -> highpass}
epochframes   
frames per epoch (filter each epoch separately {def/0: all}
filtorder   
length of the filter in points {default 3*fix(srate/locutoff)}

Outputs:
smoothdata   
smoothed data
filtwts   
filter coefficients [smoothdata <- filtfilt(filtwts,1,data)]

Author: Scott Makeig, SCCN/INC/UCSD, La Jolla, 1997

See the matlab file eegfilt.m (may require other functions)

Back to functions