sum
Sum of array elements.
Syntax
R = sum(M)
R = sum(M, d)
R = sum(M, d)
R = sum(M, d, t)
R = sum(M, d, t, f)
Input argument
M - an array of double, single, integers, ...
d - dimension to operate along: positive integer scalar.
t - a string: 'default', 'double' or 'native'.
f - a string: 'includenan' or 'omitnan'.
Output argument
R - Sum of array elements.
Description
R = sum(M) returns the sum of the array elements of M.
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated