Group blocks into functional subsystems, create model hierarchy


Subsystem Represent system within another system


Simulink.BlockDiagram.createSubSystem Create subsystem containing specified set of blocks
Simulink.BlockDiagram.copyContentsToSubSystem Copy contents of block diagram to empty subsystem
Simulink.BlockDiagram.expandSubsystem Expand subsystem contents to containing model level
Simulink.SubSystem.convertToModelReference Convert subsystem to model reference
Simulink.SubSystem.copyContentsToBlockDiagram Copy contents of subsystem to empty block diagram
Simulink.SubSystem.deleteContents Delete contents of subsystem

Examples and How To

Create a Subsystem

How to create subsystems.

Configure a Subsystem

You can configure a subsystem to execute either conditionally or unconditionally.

Navigate Subsystems in the Model Hierarchy

Subsystems allow you to create a hierarchical model comprising many layers.

Preview Content of Hierarchical Items

Display representation of block contents on the face of a block.

Expand Subsystem Contents

Expand a subsystem to flatten a model hierarchy by bringing the contents of a subsystem up one level.


Componentization Guidelines

Organize your model into independently functional parts

Subsystem Expansion

Subsystem expansion involves moving the contents of a virtual subsystem into the system that contains that subsystem.

Was this topic helpful?