Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_preproc_polyremoval”.
FT_PREPROC_POLYREMOVAL removed an Nth order polynomal from the data Use as dat = ft_preproc_polyremoval(dat, order, begsample, endsample) where dat data matrix (Nchans X Ntime) order the order of the polynomial begsample index of the begin sample for the estimate of the polynomial endsample index of the end sample for the estimate of the polynomial If begsample and endsample are not specified, it will use the whole window to estimate the polynomial. For example ft_preproc_polyremoval(dat, 0) removes the mean value from each channel and ft_preproc_polyremoval(dat, 1) removes the mean and the linear trend. See also FT_PREPROC_BASELINECORRECT, FT_PREPROC_DETREND
Share this page: