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