Difference between unit delay block and memory block

126 views (last 30 days)
Could anybody over here please explain me the difference in working and application between unit delay block and memory block.

Answers (1)

Wayne King
Wayne King on 20 Nov 2013
When the Memory block inherits a discrete sample time, the block is analogous to the Unit Delay block. However, the Memory block does not support state logging. If logging the final state is necessary, use a Unit Delay block instead.
This is documented in the reference page for the memory block.
  1 Comment
Tong Zhao
Tong Zhao on 2 Jul 2021
Can you explain more about the difference between "discrete sample time that you specify" and "one major integration time step"? The former is described for "Unit Delay" and the later for "Memory", in the documentation page for "Memory".

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!