Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Plot variable correlations

`corrplot(`

creates
a matrix of plots showing correlations among pairs of variables in `X`

)`X`

.
Histograms of the variables appear along the matrix diagonal; scatter
plots of variable pairs appear off diagonal. The slopes of the least-squares
reference lines in the scatter plots are equal to the displayed correlation
coefficients.

`corrplot(`

uses
additional options specified by one or more `X`

,`Name,Value`

)`Name,Value`

pair
arguments.

returns
the correlation matrix of `R`

= corrplot(___)`X`

displayed in the plots.
You can use any of the previous input arguments.

`collintest`

| `corr`

| `gname`

Was this topic helpful?