X = namedmat(X,RowNames,ColNames)
X = namedmat(X,Names)
X
[ numeric ] - Matrix or multidimensional array.
RowNames
[ cellstr ] - Names for individual rows of X
.
ColNames
[ cellstr ] - Names for individual columns of X
.
Names
[ cellstr ] - Names for both rows and columns of X
.
X
[ namedmat ] - Matrix with named rows and columns.Namedmat objects are used by some of the IRIS functions to preserve the names of variables that relate to individual rows and columns, such as in
acf
, the autocovariance and autocorrelation functions,xsf
, the power spectrum and spectral density functions,fmse
, the forecast mean square error fuctions,You can use the function select
to extract submatrices by referring to a selection of names.
Namedmat matrices derives from the built-in double class of objects, and hence you can use any operators and functions on them that are available for double objects.