Shaded Correlation Table

A correlation table enhanced graphically with shading, with highlighting of upper or lower ranges.
Updated 29 Jan 2011

View License

ShadedCorrelationTable produces a correlation table for a set of variables, enhanced graphically with shading according to correlation values.

Upper or lower ranges of correlation values may be highlighted through the interface controls. Two methods are provided to do this: a decay function that softens shading of values of less interest, or, shading according to a discrete threshold.

Pearson's linear correlation coefficient is used.


ShadedCorrelationTable(x, xLabels);


load('demo data.mat');

Cite As

Jaspar Cahill (2024). Shaded Correlation Table (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: usercolormap, rotateXLabels( ax, angle, varargin )

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Bug fixed.