nominal
(Not Recommended) Arrays for nominal data
The nominal
and ordinal
array data types are not
recommended. To represent ordered and unordered discrete, nonnumeric data, use the Categorical Arrays
data type instead.
Description
Nominal data are discrete, nonnumeric values that do not have a natural
ordering. nominal
array objects provide efficient storage and
convenient manipulation of such data, while also maintaining meaningful labels for the
values.
You can manipulate nominal
arrays like ordinary numeric arrays, by
subscripting, concatenating, and reshaping. Use nominal
arrays as
grouping variables when the elements indicate the group to which an observation
belongs.
Creation
Description
Input Arguments
Output Arguments
Object Functions
addlevels | (Not Recommended) Add levels to nominal or ordinal arrays |
droplevels | (Not Recommended) Drop levels from a nominal or ordinal array |
getlabels | (Not Recommended) Access nominal or ordinal array labels |
getlevels | (Not Recommended) Access nominal or ordinal array levels |
islevel | (Not Recommended) Determine if levels are in nominal or ordinal array |
levelcounts | (Not Recommended) Element counts by level of a nominal or ordinal array |
mergelevels | (Not Recommended) Merge levels of nominal or ordinal arrays |
reorderlevels | (Not Recommended) Reorder levels of nominal or ordinal arrays |
setlabels | (Not Recommended) Assign labels to levels of nominal or ordinal arrays |
The following is a partial list of the many other MATLAB® array functions you can use with nominal arrays.
Examples
Version History
Introduced in R2007a