| Simulink® | ![]() |
Discrete

The Discrete Derivative block computes an optionally scaled discrete time derivative as follows
![]()
where
and
are the block's input and output
at the current time step, respectively,
is the block's input at the
previous time step,
is a scaling factor,
and
is the simulation's discrete
step size, which must be fixed.
The Discrete Derivative block supports all Simulink® software data types, including fixed-point data types.
For a discussion on the data types supported by Simulink software, see Data Types Supported by Simulink®.
The Main pane of the Discrete Derivative block dialog appears as follows:

Scaling factor used to weight the block's input at the current time step.
Set the initial condition for the previous scaled input.
The Signal Attributes pane of the Discrete Derivative block dialog box appears as follows:

Specify the minimum value that the block should output. The default value, [], is equivalent to -Inf. Simulink software uses this value to perform:
Simulation range checking (see Checking Signal Ranges)
Automatic scaling of fixed-point data types
Specify the maximum value that the block should output. The default value, [], is equivalent to Inf. Simulink software uses this value to perform:
Simulation range checking (see Checking Signal Ranges)
Automatic scaling of fixed-point data types
Specify the output data type. You can set it to:
A rule that inherits a data type, for example, Inherit: Inherit via back propagation
The name of a built-in data type, for example, single
The name of a data type object, for example, a Simulink.NumericType object
An expression that evaluates to a data type, for example, float('single')
Click the Show data type assistant button
to display the Data
Type Assistant, which helps you set the Output
data type parameter.
See Specifying Block Output Data Types for more information.
Select to lock scaling of outputs. This parameter is visible only if you enter an expression for the Output data type parameter.
Select the rounding mode for fixed-point operations. For more information, see Rounding in the Simulink® Fixed Point™ User's Guide.
If selected, fixed-point overflows saturate.
Direct Feedthrough | Yes |
Scalar Expansion | Yes, of inputs and gain |
![]() | Direct Lookup Table (n-D) | Discrete Filter | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |