As a model increases in size and complexity, you can simplify it by grouping blocks into subsystems. A subsystem is a set of blocks that you group into a single Subsystem block.
Establishes a hierarchical block diagram, where a Subsystem block is in one layer and the blocks that make up the subsystem are in another
Keeps functionally related blocks together
Helps reduce the number of blocks displayed in your model window
When you make a copy of a subsystem, that copy is independent of the source subsystem. To reuse the contents of a subsystem across a model or across models, use a library or convert the subsystem to a referenced model. To identify the most suitable model component for your application, see Component-Based Modeling Guidelines.
A subsystem can be virtual or nonvirtual. A virtual subsystem provides graphical hierarchy in a model and does not impact the execution of a model. A nonvirtual subsystem executes as a single unit within a model. For information on conditionally executed subsystems, see Conditionally Executed Subsystems and Models.
|Subsystem||Group blocks to create model hierarchy|
|Create subsystem containing specified set of blocks|
|Copy contents of block diagram to empty subsystem|
|Replace subsystem with subsystem contents|
|Convert subsystem to model reference|
|Copy contents of subsystem to empty block diagram|
|Delete contents of subsystem|
Fundamentals of subsystems.
How to create subsystems.
Set subsystem execution, behavior, and access.
Navigate model hierarchy of subsystems and referenced models.
Display representation of block contents on the face of a block.
Flatten a model hierarchy by bringing the contents of a subsystem up one level.
Save a subsystem in a separate file and reference it in a model.
Use subsystem reference in a model.