Skip to Main Content Skip to Search
Product Documentation

numel - Class: dataset

Number of elements in dataset array

Syntax

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

Description

n = numel(A) returns 1. To find the number of elements, n, in the dataset array A, use prod(size(A)) or numel(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

length | size

  


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