Fixed-Point Blockset    
Derivative

Compute a discrete time derivative

Library

Calculus

Description

The Derivative block computes a discrete time derivative, by subtracting the input value at the previous time step from the current value, and dividing by the sample time.

Parameters and Dialog Box

Gain value
Specify the weight by which the sample time is multiplied.
Initial condition for previous weighted input K*u/Ts
Set the initial condition for the previous scaled input.
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
Same as the input
Direct Feedthrough
Yes
Scalar Expansion
Of inputs and gain


  Decrement To Zero Detect Change