Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

ndims - Class: categorical

Number of dimensions of categorical array

Syntax

n = ndims(A)

Description

n = ndims(A) returns the number of dimensions in the categorical array A. The number of dimensions in an array is always greater than or equal to 2. Trailing singleton dimensions are ignored. Put simply, ndims(A) is length(size(A)).

See Also

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