dsp.CumulativeSum
(To be removed) Cumulative sum of channel, column, or row elements
dsp.CumulativeSum
will be removed in a future release. Use thecumsum
function instead. For more information, seeCompatibility Considerations.
Description
Thedsp.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, seeWhat Are System Objects?
Creation
Description
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.
Properties
Usage
Syntax
Description
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the System object as the first input argument. For example, to release system resources of a System object namedobj
, use this syntax:
release(obj)
Examples
Algorithms
This object implements the algorithm, inputs, and outputs described on theCumulative Sumblock reference page. The object properties correspond to the block properties, except theReset portblock parameter corresponds to both theResetCondition
and theResetInputPort
object properties.