Corrects the values in 2D-data, removing a linear trend either in the lower or upper bound.
Updated 11 Feb 2018

View License

This function is a by-product of my PhD work. I used it to correct bounded data that has a trend either in its lower or its upper bound. This is particularly useful when you know a given data set cannot take lower (or upper) values than a certain threshold but yet it does, due for example to measuring errors. An example script is also included to help understand and use the code.

Cite As

Santiago Benito (2024). boundCorrection (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Added input array size check.
Added trend line function as output.
Added example file.