NUMEL

Purpose:

Returns the total number of array elements.

Syntax:

NUMEL(a)

a

-

Optional. A series or array. Defaults to current Window.

Returns:

An integer, the total number of array elements.

 

Example:

a = rand(20, 3);

numel(a) == 60

Example:

b = {{1..10, 2, 1..2}}

 

numel(b) == 13

Remarks:

For a series, numel(s) == length(s).

See Also:

LENGTH

SIZE