Scatter plot matrix

`plotmatrix(`

is the
same as `X`

)`plotmatrix(X,X)`

except that the subaxes
along the diagonal are replaced with histogram plots of the data in
the corresponding column of `X`

. For example, the
subaxes along the diagonal in the *i*th column
is replaced by `hist(X(:,i))`

.

`[`

returns handles to the graphic
objects created as follows:`H`

,`AX`

,`BigAx`

,`P`

,`PAx`

]
= plotmatrix(___)

`H`

– Matrix of handles to the line objects used to create the scatter plots`AX`

– Matrix of handles to the individual subaxes`BigAx`

– Handle to the big axes that frames the subaxes`P`

– Vector of handles for the patch objects that create the histogram plots`PAx`

– Vector of handles to the invisible histogram axes

`BigAx`

is left as the current axes (`gca`

)
so that a subsequent `title`

, `xlabel`

,
or `ylabel`

command will center text with respect
to the big axes.

Was this topic helpful?