Cumulative sum of channel, column, or row elements
The dsp.CumulativeSum
System object™ computes the cumulative sum of channel, column, or row elements.
To compute the cumulative sum of channel, column, or row elements:
Create the dsp.CumulativeSum
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
returns a
cumulative sum System object, csum
= dsp.CumulativeSumcsum
, which computes the running cumulative sum for
each channel in the input.
returns a cumulative sum object, csum
= dsp.CumulativeSum(Name,Value
)csum
, with each specified property
set to the specified value. Enclose each property name in single quotes. Unspecified
properties have default values.
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
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.