EEGFILT (high|low|band)-iass filter data using two-way least-squares FIR filtering. Multiple data channels and epochs supported. Requires the MATLAB 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: data is 1 epoch}
filtorder   
length of the filter in points {default 3*fix(srate/locutoff)}
revfilt   
[0|1] reverse filter (i.e. bandpass filter to notch filter). {0}

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

See also:

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

Back to functions