fn_detrend

Contents

Syntax

y = fn_detrend(x,frames[,dim][,'subtract|normalize|keepmean'])

Description

Correct signals for a trend that is estimated only from the specified
frames.
Input:
- x       array - data
- frames  vector of indices or logicals - reference frames to use for
          detrending
- flag    'subtract' subtracts the estimated trend (constand and linear
          parts) [default]
          'normalize' divides by the linear part (i.e. mean over the
          reference frames becomes 1)
          'keepmean' subtracts the linear part (i.e. the mean over the
          reference frames remains the same)

Source

Thomas Deneux

Copyright 2015-2017