FUNCTION REFERENCE

numel

Number of elements.

Number of elements.

Syntax

numel(A)

Returns rows times columns.

Example

numel([1 2; 3 4])   % 4

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.