Skip to Main Content Skip to Search
Product Documentation

length - Class: categorical

Length of categorical array

Syntax

n = length(A)

Description

n = length(A) returns the size of the longest dimension of the categorical array A when A is not empty. If A is a vector, this is the same as its length. length is equivalent to max(size(x)) for nonempty arrays, and 0 for empty arrays.

See Also

isempty | isscalar | size

  


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