This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Class: dataset

Number of elements in dataset array

The dataset data type might be removed in a future release. To work with heterogeneous data, use the MATLAB® table data type instead. See MATLAB table documentation for more information.


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


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


Was this topic helpful?