| Simulink Reference | ![]() |
Calculate the change in a signal over one time step
Library
Description
The Difference block outputs the current input value minus the previous input value.
Data Type Support
The Difference block accepts signals of any data type supported by Simulink, including fixed-point data types.
Parameters and Dialog Box
The Main pane of the Difference block dialog appears as follows:
The Signal data types pane of the Difference block dialog appears as follows:
Specify via dialog for the Output data type and scaling parameter.
Specify via dialog for the Output data type and scaling parameter.
Characteristics
| Direct Feedthrough |
Yes |
| Scalar Expansion |
Yes, of inputs and gain |
| Detect Rise Positive | Digital Clock | ![]() |
© 1994-2005 The MathWorks, Inc.