MEDIAN_POLISH(X) fits an additive model to a 2D input matrix, X, assuming a decomposition of (constant + rows + columns).
Median polishing is useful for removing spatial trends in the data by alternately removing medians from the rows and columns of the data. The algorithm proceeds as follows. Considering the rows first, for each row the row median is subtracted from every element in that row. Then, for each column, the median of the revised numbers is then subtracted from every element in that column. This process is repeated until all convergence, or a maximum number of iterations.
Adam Auton (2024). Median Polish (https://www.mathworks.com/matlabcentral/fileexchange/23464-median-polish), 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!