cumsumΒΆ

cumsum returns the cumulative sums of each column of a matrix.

rmCumsum = cumsum(rmMat)

Return Value

rmCumsum is a real matrix with cumulative sums.

Parameters

r

r is a real matrix.

Example

a = [1,2,3;
     4,5,6;
     7,8,9]
cumsum(a)
1   2   3
5   7   9
12  15  18

id-370529