| Simulink Reference | ![]() |
Output the time derivative of the input
Library
Description
The Derivative block approximates the derivative of its input by computing
where du is the change in input value and dt is the change in time since the previous simulation time step. The block accepts one input and generates one output. The initial output for the block is zero.
The accuracy of the results depends on the size of the time steps taken in the simulation. Smaller steps allow a smoother and more accurate output curve from this block. Unlike blocks that have continuous states, the solver does not take smaller steps when the input changes rapidly.
When the input is a discrete signal, the continuous derivative of the input is an impulse when the value of the input changes, otherwise it is 0. You can obtain the discrete derivative of a discrete signal using
Using linmod to linearize a model that contains a Derivative block can be troublesome. For information about how to avoid the problem, see Linearizing Models in the Using Simulink documentation.
Data Type Support
The Derivative block accepts and outputs a real signal of type double.
Parameters and Dialog Box
Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Continuous |
| Scalar Expansion |
N/A |
| States |
2*[1+(number of input elements)] |
| Dimensionalized |
Yes |
| Zero Crossing |
No |
See Also
| Demux | Detect Change | ![]() |
© 1994-2005 The MathWorks, Inc.