IRIS Toolbox Reference Manual

## namedmat

Create a new matrix with named rows and columns

#### Syntax

    X = namedmat(X,ROWNAMES,COLNAMES)

#### Input arguments

- `X` [ numeric ] - Matrix or multidimensional array.

- `ROWNAMES` [ cellstr ] - Names for individual rows of `X`.

- `COLNAMES` [ cellstr ] - Names for individual columns of `X`.

#### Output arguments

- `X` [ namedmat ] - Matrix with named rows and columns.

#### Description

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,
- etc.

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.

#### Example

IRIS Toolbox. Copyright © 2007—2013 Jaromir Benes.