Scatter plot matrix
plotmatrix(X,Y)
plotmatrix(X)
plotmatrix(___,LineSpec)
[S,AX,BigAx,H,HAx] = plotmatrix(___)
plotmatrix(
is the same asX
)plotmatrix(X,X)
except that the subaxes along the diagonal are replaced with histogram plots of the data in the corresponding column ofX
. For example, the subaxes along the diagonal in theith column is replaced byhistogram(X(:,i))
.
[
returns the graphic objects created as follows:S
,AX
,BigAx
,H
,HAx
] = plotmatrix(___)
S
– Chart line objects for the scatter plots
AX
– Axes objects for each subaxes
BigAx
– Axes object for big axes that frames the subaxes
H
– Histogram objects for the histogram plots
HAx
– Axes objects for the invisible histogram axes
BigAx
is left as the current axes (gca
) so that a subsequenttitle
,xlabel
, orylabel
command centers text with respect to the big axes.