image thumbnail

Detrend Non-linear Data

version (1.27 KB) by Atul Ingle
Removes nonlinear trend from data


Updated 20 Feb 2012

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

Cite As

Atul Ingle (2021). Detrend Non-linear Data (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!