This shows you the differences between two versions of the page.

Link to this comparison view

reference:ft_preproc_rereference [2018/08/23 14:43] (current)
Line 1: Line 1:
 +Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help ft_preproc_rereference"​.
 +  <a href=/​reference/​ft_preproc_rereference><​font color=green>​FT_PREPROC_REREFERENCE</​font></​a>​ computes the average reference over all EEG channels
 +  or rereferences the data to the selected channels
 +  Use as
 +    [dat] = ft_preproc_rereference(dat,​ refchan, method, handlenan)
 +  where
 +    dat        data matrix (Nchans X Ntime)
 +    refchan ​   vector with indices of the new reference channels, or '​all'​
 +    method ​    ​string,​ can be '​avg'​ or '​median'​
 +    handlenan ​ boolean, can be true or false
 +  If the new reference channel is not specified, the data will be
 +  rereferenced to the average of all channels.
 +  See also PREPROC