rownames
Retrieve or set row names of DataMatrix object
Syntax
ReturnRowNames =
rownames(DMObj)
ReturnRowNames =
rownames(DMObj, RowIndices)
DMObjNew =
rownames(DMObj, RowIndices, RowNames)
Input Arguments
DMObj | DataMatrix object, such as created by |
RowIndices | One or more rows in
|
RowNames | Row names specified by any of the following:
Note The number of elements in |
Output Arguments
ReturnRowNames | Character vector or cell array of character vectors containing
row names in DMObj. |
DMObjNew | DataMatrix object created with names specified by |
Description
returns ReturnRowNames =
rownames(DMObj)ReturnRowNames,
a cell array of character vectors specifying the row names in DMObj,
a DataMatrix object.
returns
the row names specified by ReturnRowNames =
rownames(DMObj, RowIndices)RowIndices. RowIndices can
be a positive integer, vector of positive integers, character vector
specifying a row name, cell array of character vectors, or a logical
vector.
returns DMObjNew =
rownames(DMObj, RowIndices, RowNames)DMObjNew,
a DataMatrix object with rows specified by RowIndices set
to the names specified by RowNames. The
number of elements in RowIndices must equal
the number of elements in RowNames.
Version History
Introduced in R2008b