Fixed-Point Blockset    
Difference

Calculate the change in a signal over one time step

Library

Calculus

Description

The Difference block outputs the current input value minus the previous input value.

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 Ports
Any data type supported by the blockset
Output Port
Any data type supported by the blockset
Direct Feedthrough
Yes
Scalar Expansion
Of inputs and gain


  Detect Rise Positive Divide