Median Polish
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 (2024). Median Polish (https://www.mathworks.com/matlabcentral/fileexchange/23464-median-polish), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |