Skip to Main Content Skip to Search
Product Documentation

numel - Class: categorical

Number of elements in categorical array

Syntax

n = numel(A)
n = numel(A, varargin)

Description

n = numel(A) returns the number of elements in the categorical array A.

n = numel(A, varargin) returns the number of subscripted elements, n, in A(index1, index2, ..., indexN), where varargin is a cell array whose elements are index1, index2, ... indexN.

See Also

size

  


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