Documentation

Model Hierarchy

Divide model into subcomponents

For large-scale models, component reuse, or multi-user development teams, you should use component-based modeling to define your model hierarchy. See Componentization Guidelines.

Blocks

Subsystem Represent system within another system
Model Include multiple model implementations as block in another model

Functions

Simulink.BlockDiagram.createSubSystem Create subsystem containing specified set of blocks
Simulink.BlockDiagram.copyContentsToSubSystem Copy contents of block diagram to empty subsystem
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
Simulink.BlockDiagram.expandSubsystem Expand subsystem contents to containing model level
Simulink.SubSystem.getChecksum Return checksum of nonvirtual subsystem

Examples and How To

Preview Content of Hierarchical Items

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

Create a Subsystem

How to create subsystems.

Concepts

Componentization Guidelines

Organize your model into independently functional parts

Was this topic helpful?