Subsystems

Group blocks into functional subsystems, create model hierarchy

Blocks

SubsystemGroup blocks to create model hierarchy

Functions

Simulink.BlockDiagram.createSubsystemCreate subsystem containing specified set of blocks
Simulink.BlockDiagram.copyContentsToSubsystemCopy contents of block diagram to empty subsystem
Simulink.BlockDiagram.expandSubsystemReplace subsystem with subsystem contents
Simulink.SubSystem.convertToModelReferenceConvert subsystem to model reference
Simulink.SubSystem.copyContentsToBlockDiagramCopy contents of subsystem to empty block diagram
Simulink.SubSystem.deleteContentsDelete contents of subsystem

Examples and How To

Subsystem Basics

Fundamentals of subsystems

Create a Subsystem

How to create subsystems.

Configure a Subsystem

Set subsystem execution, behavior, and access

Navigate Model Hierarchies

Navigate model hierarchy of subsystems and referenced models.

Preview Content of Model Components

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

Expand Subsystem Contents

Flatten a model hierarchy by bringing the contents of a subsystem up one level

Concepts

Subsystem Expansion

Flatten a model hierarchy by bringing the contents of a subsystem up one level