IRIS Toolbox Reference Manual

namedmat

Create a new matrix with named rows and columns

Syntax

X = namedmat(X,RowNames,ColNames)
X = namedmat(X,Names)

Input arguments

Output arguments

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

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