@categorical

Arrays for categorical data

Hierarchy

Superclasses: None

Subclasses: @nominal, @ordinal

Constructor

@categorical is an abstract class. To construct a categorical object, use one of the subclass constructors, nominal or ordinal.

Properties

NameDescription
labels

Text labels for levels. Access labels with getlabels.

undefLabel

Text label for undefined levels. Constant property with value '<undefined>'.

Methods

The following table contains links to methods with supporting reference pages, including examples. For help on methods without links, type:

help categorical/methodname
MethodDescription
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.

islevel

Test for array levels.

isscalar

True if array is scalar.

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.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS