Products & Services Industries Academia Support User Community Company

Learn more about Statistics Toolbox   

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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