RMBASE Subtract basevector channel means from multi-epoch data matrix

Usage: >> [dataout] = rmbase(data); % remove whole-data channel means
>> [dataout datamean] = rmbase(data,frames,basevector);
% remove mean of basevector from each channel and epoch

Inputs:
data   
data matrix (chans,frames*epochs) or (chans, frames, epochs);
frames   
data points per epoch {[]|0|default->data length}
basevector   
vector of baseline frames per epoch Ex 1:128 {[]|0|default->whole epoch}

Author: Scott Makeig, SCCN/INC/UCSD, La Jolla, 2-5-96

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

Back to functions