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.
Chad Greene (2021). detrend3 (https://www.mathworks.com/matlabcentral/fileexchange/61328-detrend3), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!