Discrete Derivative
R2026bCompute discrete-time derivative
Libraries:
Simulink /
Discrete
Simulink /
Quick Insert /
Discrete
Description
The Discrete Derivative block computes an optionally scaled discrete time derivative as follows
where
and are the block input and output at the current time step, respectively.
is the block input at the previous time step.
is an optional scaling factor, specified using the Gain value parameter.
is the simulation's discrete step size, which must be fixed.
Note
Do not use this block in subsystems with a nonperiodic trigger, for example, nonperiodic function-call subsystems. This configuration produces inaccurate results.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Discrete/Discrete Derivative"
"simulink/Quick Insert/Discrete/Discrete Derivative"
Example: add_block("simulink/Discrete/Discrete Derivative","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced before R2006a

