<< Matrix_pal Matrix_pal EXTRACT >>

Scilab Help >> Xcos > palettes > Matrix_pal > CUMSUM

CUMSUM

Cumulative Sum

Block Screenshot

Contents

Description

The CUMSUM block cumulatively sums the element of an input MxN matrix U along either the rows, the columns or the first non singleton dimension. The size of the output is also MxN.

When the Sum along parameter is set to:

The equivalent function in Scilab is cumsum.

Parameters

Default properties

Example

A = [1 2 3 ; 4 5 6 ; 7 8 9]
If the sum is along the row the result will be:
B = [1 2 3 ; 5 7 9 ; 12 15 18]

Cumulative Sum example

Interfacing function

Computational function

See also


Report an issue
<< Matrix_pal Matrix_pal EXTRACT >>