Correlation Matrix Scatterplot

version (3.36 KB) by John Chow
Produces a correlation matrix scatterplot with least-squared fitted lines.


Updated Tue, 05 May 2020 21:43:26 +0000

View License

This function creates multiple bivariate scatterplots similar to SPSS's Matrix Scatterplot but without duplicate relationships. A linear fitted line, the correlation coefficient and the associated p-value are included in each plot. It is helpful when you want to explore the relationships among several variables.

Cite As

John Chow (2022). Correlation Matrix Scatterplot (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: tight_subplot(Nh, Nw, gap, marg_h, marg_w)

Community Treasure Hunt

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

Start Hunting!