DiscreteDerivative
This block computes the discrete derivative of the input signal. The derivative is obtained by dividing the difference between the current value of the input and the previous value of the input divided by the difference of their respective times.
Library
Dynamical
Description
The DiscreteDerivative computes the discrete derivative of the input signal. The derivative is obtained by dividing the difference between the current value of the input and the previous value of the input divided by the difference of their respective times. If the time difference is zero, the block outputs the previous value of the derivative. The value of the input at the initial time is defined by the block parameter. For initialization, the block parameter sets the value of the initial previous input. This block supports double data type.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
init_cond | Initial previous input |