detrend3

A fast and easy function for detrending 3D datasets

You are now following this Submission

This function behaves just like Matlab's detrend function, but detrending is applied along the third dimension of all rows and columns of a 3D dataset. If your samples are not evenly spaced in along the third dimension, you can include a corresponding time vector for the least-squares detrending.

Cite As

Chad Greene (2026). detrend3 (https://uk.mathworks.com/matlabcentral/fileexchange/61328-detrend3), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: trend

Inspired: xcorr3, EOF, detrendNaN3

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0