Simulink Reference | ![]() ![]() |
Output the block input from the previous integration step
Library
Description
The Memory block outputs its input from the previous time step, applying a one integration step sample-and-hold to its input signal.
This sample model demonstrates how to display the step size used in a simulation. The Sum block subtracts the time at the previous step, generated by the Memory block, from the current time, generated by the clock.
Note
Avoid using the Memory block when integrating with ode15s or ode113 , unless the input to the block does not change. |
Data Type Support
A Memory block accepts signals of any data type and complexity, including fixed-point data types, except int64
and uint64
.
Parameters and Dialog Box
Characteristics
![]() | Matrix Concatenation | Merge | ![]() |