numel | 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 proebuck1701@gmail.com
prod
,
size
numel(2:9) # 8
numel(magic(4)) # 16
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.