Resetting memories inside IF block when it is inside a Resettable Subsystem

Inside a Resettable Subsystem, there is IF block (see picture attached). When the subsystem is reset, state memories (such as Unit Delay) inside Subsystem A and B are not reset. Because A and B have their own action port (with held and reset option) related to IF block.
In the official documentation "A resettable subsystem enables you to reset the states of all blocks inside it", but in my example, A and B are not reset.
How I can reset blocks that are inside A and B in this case?

 Accepted Answer

The solution given by MathWorks support is not working in the case of Action Subsystems that are not activated on time of the reset.
Attached is my solution to that problem.

Categories

Products

Community Treasure Hunt

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

Start Hunting!