Simulink.BlockDiagram.arrangeSystem

Improve layout of model or subsystem

Description

example

Simulink.BlockDiagram.arrangeSystem(sys) improves model or subsystem layout by realigning, resizing, and moving blocks and straightening signal lines.

Examples

collapse all

You can use Simulink.BlockDiagram.arrangeSystem with any open model, and it is particularly useful with models you populate programmatically.

Blocks in the model ex_arrange_system are poorly arranged.

open_system('ex_arrange_system')

Similarly, blocks in its subsystem are poorly arranged.

open_system('ex_arrange_system/Subsystem')

Programmatically arrange blocks in the top layer of the specified systems.

Simulink.BlockDiagram.arrangeSystem('ex_arrange_system')

Simulink.BlockDiagram.arrangeSystem('ex_arrange_system/Subsystem')

Input Arguments

collapse all

Model name or subsystem block path, specified as a character vector.

Introduced in R2018a