plotmatrix
Scatter plot matrix
Syntax
Description
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 ith column
is replaced by histogram(X(:,i))
.
plotmatrix(___,
specifies
the line style, marker symbol, and color for the scatter plots. The
option LineSpec
)LineSpec
can be preceded by any of the input
argument combinations in the previous syntaxes.
plotmatrix(
plots
into the specified target axes, where the target axes is an invisible frame for
the subaxes.ax
,___)
[
returns the graphic objects
created as follows:S
,AX
,BigAx
,H
,HAx
]
= plotmatrix(___)
S
– Chart line objects for the scatter plotsAX
– Axes objects for each subaxesBigAx
– Axes object for big axes that frames the subaxesH
– Histogram objects for the histogram plotsHAx
– Axes objects for the invisible histogram axes
BigAx
is left as the current axes (gca
)
so that a subsequent title
, xlabel
,
or ylabel
command centers text with respect to
the big axes.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced before R2006aSee Also
scatter
| scatter3
| tiledlayout
| nexttile