Fixed-Point Blockset    
Accumulator

Compute a cumulative sum

Library

Calculus

Description

At time step n, the Accumulator block computes a cumulative sum of all input values u up to time n and outputs the sum.

Parameters and Dialog Box

Initial condition for previous output
Set the initial condition for the previous output.
Output data type and scaling
Specify the output data type and scaling via the dialog box, or inherit the data type and scaling from the driving block or by backpropagation.
Round toward
Rounding mode for the fixed-point output.
Saturate to max or min when overflows occur
If selected, fixed-point overflows saturate.

Characteristics

Input Port
Any data type supported by the blockset
Output Port
Same data type as the input
Direct Feedthrough
Yes
Scalar Expansion
Of inputs and gain


  Abs Accumulator Resettable