numel {matlab} | R Documentation |
Provides number of elements in array A
or subscripted array expression.
numel(A, varargin)
A |
object of which to determine the number of elements |
varargin |
unimplemented |
Returns prod(size(A))
.
P. Roebuck, roebuck@mdanderson.org
numel(2:9) # 8 numel(magic(4)) # 16