Simulink Reference    
Memory

Output the block input from the previous integration step

Library

Discrete

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.

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

Initial condition
The output at the initial integration step. This must be set to 0 if the input data type is user-defined.
Inherit sample time
Check this check box to cause the sample time to be inherited from the driving block.
Direct feedthrough of input during linearization
Causes the block to output its input during linearization and trim. This sets the block's mode to direct feedthrough.

Characteristics

Dimensionalized
Yes
Direct Feedthrough
No, except when Direct feedthrough of input during linearization is enabled.
Sample Time
Continuous, but inherited from the driving block if the Inherit sample time check box is selected
Scalar Expansion
Yes, of the Initial condition parameter
Zero Crossing
No


  Matrix Concatenation Merge