| Statistics Toolbox™ | ![]() |
Arrays for nominal categorical data
| On this page… |
|---|
Superclasses: @categorical
Subclasses: None
Properties in the following table are inherited from @categorical.
| Name | Description |
|---|---|
| labels | Text labels for levels. Access labels with getlabels. |
| undefLabel | Text label for undefined levels. Constant property with value '<undefined>'. |
The following table contains links to methods with supporting reference pages, including examples. For help on methods without links, type:
help nominal/methodname
| Method | Description |
|---|---|
| cat | Concatenate arrays. The horzcat and vertcat methods implement special cases. |
| eq | Equality for arrays. To invoke this method, use the == operator. |
| horzcat | Horizontal concatenation. To invoke this method, use square brackets, as described in Combining Categorical Arrays. |
| intersect | Set intersection. |
| ismember | True for set member. |
| mergelevels | Merge levels. |
| ne | Not equal. To invoke this method, use the ~= operator. |
| nominal | Construct nominal categorical array. |
| setdiff | Set differences. |
| setxor | Set exclusive or. |
| union | Set union. |
| vertcat | Vertical concatenation. To invoke this method, use square brackets, as described in Combining Categorical Arrays. |
Methods in the following table are inherited from @categorical.
| Method | Description |
|---|---|
| addlevels | Add levels. |
| cellstr | Convert to cell array of strings. |
| char | Convert to character array. |
| circshift | Shift circularly. |
| ctranspose | Transpose. To invoke this method, use the ' operator. |
| disp | Display, without printing array name. |
| display | Display, printing array name. To invoke this method, enter the name of a categorical array at the command prompt. |
| double | Convert to double array. |
| droplevels | Remove levels. |
| end | Last index in indexing expression. |
| flipdim | Flip along specified dimension. |
| fliplr | Flip in left/right direction. |
| flipud | Flip in up/down direction. |
| getlabels | Get level labels. |
| int8 | Convert to int8 array. |
| int16 | Convert to int16 array. |
| int32 | Convert to int32 array. |
| int64 | Convert to int64 array. |
| ipermute | Inverse permute dimensions. |
| isempty | True for empty array. |
| isequal | True if arrays are equal. |
| isscalar | True if array is scalar. |
| islevel | Test for array levels. |
| isundefined | True for elements of array that are undefined. |
| isvector | True if array is vector. |
| length | Length of array. |
| levelcounts | Element counts by level. |
| ndims | Number of dimensions. |
| numel | Number of elements. |
| permute | Permute dimensions. |
| reorderlevels | Reorder levels. |
| repmat | Replicate and tile array. |
| reshape | Change size of array. |
| rot90 | Rotate 90 degrees. |
| setlabels | Relabel levels. |
| shiftdim | Shift dimensions. |
| single | Convert to single array. |
| size | Size of array. |
| squeeze | Squeeze singleton dimensions from array. |
| subsasgn | Subscripted assignment. To invoke this method, use parenthesis indexing, as described in Accessing Categorical Arrays. |
| subsref | Subscripted reference. To invoke this method, use parenthesis indexing, as described in Accessing Categorical Arrays. |
| summary | Summary of array. |
| times | Product of arrays. To invoke this method, use the .* operator. |
| transpose | Transpose. To invoke this method, use the .' operator. |
| uint8 | Convert to uint8 array. |
| uint16 | Convert to uint16 array. |
| uint32 | Convert to uint32 array. |
| uint64 | Convert to uint64 array. |
| unique | Unique values in array. |
![]() | @haltonset | @ordinal | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |