Correlation Matrix Scatterplot 2-group
Version 1.0.0 (3.29 KB) by
John Chow
Produces a correlation matrix scatterplot of 2 sets of variables with least-squared fitted lines.
This function is a follow-up to the Correlation Matrix Scatterplot
(www.mathworks.com/matlabcentral/fileexchange/53043-correlation-matrix-scatterplot). It creates multiple bivariate scatterplots of 2 sets of variables. A linear fitted line, the Pearson's correlation coefficient, associated p-value, and sample size are included in each plot. It is helpful when you want to explore the relationships between 2 sets of variables.
Cite As
John Chow (2026). Correlation Matrix Scatterplot 2-group (https://se.mathworks.com/matlabcentral/fileexchange/78513-correlation-matrix-scatterplot-2-group), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
