Scatter Plot Matrix
Version 1.0.1 (4.03 KB) by
Ningshan Li
Scatter plot matrix with histogram in diagonal line, correlation coefficients in upper triangular, and scatter plots in the lower triangular
An example of this function using 'carsmall' data as below:
load carsmall
scatterPlotMatrix([Acceleration,Cylinders,Displacement,Horsepower,Model_Year,Weight,MPG], {'Acceleration','Cylinders','Displacement','Horsepower','ModelYear','Weight','MPG'})
Cite As
Ningshan Li (2024). Scatter Plot Matrix (https://www.mathworks.com/matlabcentral/fileexchange/71833-scatter-plot-matrix), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2018b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots > Scatter Plots >
- Sciences > Mathematics > Probability & Statistics > Scatter Plots >
Find more on Scatter Plots in Help Center and MATLAB Answers
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.