image thumbnail

Median Polish

version 1.0.0.0 (2.26 KB) by Adam Auton
Fits an additive model using Tukey's median polish procedure.

998 Downloads

Updated 28 Mar 2009

View License

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.

Cite As

Adam Auton (2021). Median Polish (https://www.mathworks.com/matlabcentral/fileexchange/23464-median-polish), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
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!