Package: dsp
Cumulative sum of channel, column, or row elements
The CumulativeSum
object computes the cumulative
sum of channel, column, or row elements.
To compute the cumulative sum of channel, column, or row elements:
Define and set up your cumulative sum object. See Construction.
Call step
to compute the cumulative
sum according to the properties of dsp.CumulativeSum
.
The behavior of step
is specific to each object in
the toolbox.
Note:
Starting in R2016b, instead of using the 
H = dsp.CumulativeSum
returns
a cumulative sum System object, H
, which computes
the running cumulative sum for each channel in the input.
H = dsp.CumulativeSum('
returns
a cumulative sum object, PropertyName
',PropertyValue
,...)H
, with each specified property
set to the specified value.

Computation dimension for cumulative sum Specify the computation dimension as one of  

Enable resetting cumulative sum via input port. Set this property to 

Reset condition for cumulative sum Specify the event on the reset input port that resets the cumulative
sum as one of  
clone  Create cumulative sum object with same property values 
getNumInputs  Number of expected inputs to step method 
getNumOutputs  Number of outputs of step method 
isLocked  Locked status for input attributes and nontunable properties 
release  Allow property value and input characteristics changes 
reset  Reset internal states of cumulative sum object to zero 
step  Cumulative sum along specified dimension for input 
This object implements the algorithm, inputs, and outputs described on the Cumulative Sum block reference page. The object properties correspond to the block properties, except:
The Reset port block parameter corresponds
to both the ResetCondition and the ResetInputPort object
properties 