<< Matrix_pal Matrix operation palette EXTRACT >>

Scilabヘルプ >> Xcos > palettes > Matrix operation palette > CUMSUM

CUMSUM

Cumulative Sum

Block Screenshot

Contents

Palette

Description

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

When the Sum along parameter is set to :

The equivalent function in Scilab is cumsum.

Dialog box

Example

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

Default properties

Interfacing function

Computational function

See also


Report an issue
<< Matrix_pal Matrix operation palette EXTRACT >>