numel
The number of elements in an array.
n=numel(a)
Inputs
a
Any array.
Outputs
n
The number of elements in the input. It is the product of all elements of the vector
size(a)
.