对角线上为直方图的散点图矩阵,上三角为相关系数,下三角为散点图
Scatter plot matrix with histogram in diagonal line, correlation coefficients in upper triangular, and scatter plots in the lower triangular
代码示例:
load carsmall
scatterPlotMatrix([Acceleration,Cylinders,Displacement,Horsepower,Model_Year,Weight,MPG], {'Acceleration','Cylinders','Displacement','Horsepower','ModelYear','Weight','MPG'})
完整源码下载请点击“阅读原文”