File Exchange

image thumbnail

Detrend Non-linear Data

version 1.0 (1.27 KB) by

Removes nonlinear trend from data

14 Downloads

Updated

View License

DETRENDNONLIN Removes non-linear trend from a vector.
The nonlinearity is removed by subtracting a least-squares
polynomial fit.
Y = DETRENDNONLIN(X) subtracts a second order polynomial fit from
the data vector X.
Y = DETRENDNONLIN(X, n) subtracts a polynomial fit of order n from
the data vector X.
Note: This function may throw errors generated in the function call to
POLYFIT.

Comments and Ratings (0)

MATLAB Release
MATLAB 7.12 (R2011a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video