Improve layout of model or subsystem
Simulink.BlockDiagram.arrangeSystem(sys)
example
Simulink.BlockDiagram.arrangeSystem(sys) improves model or subsystem layout by realigning, resizing, and moving blocks and straightening signal lines.
sys
collapse all
You can use Simulink.BlockDiagram.arrangeSystem with any open model, and it is particularly useful with models you populate programmatically.
Simulink.BlockDiagram.arrangeSystem
Blocks in the model ex_arrange_system are poorly arranged.
ex_arrange_system
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')
Model name or subsystem block path, specified as a character vector.
Simulink.BlockDiagram.routeLine | add_block | add_line
Simulink.BlockDiagram.routeLine
add_block
add_line
You have a modified version of this example. Do you want to open this example with your edits?