image thumbnail


version (58.6 KB) by Joerg Buchholz
Block diagram Optimization Tool


Updated 24 Feb 2014

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

BOT optimizes the layout of the current Simulink block diagram.
Blocks and lines are resized and moved until their vertices satisfy a 5 pixel grid.

You can define safety zones around blocks and line; The program then moves blocks and lines, until their safety zones do not overlap. Think of blocks and lines as magnets repelling each other.

Lines can be rerouted and intersecting lines can be untangled.

Finally, the program tries to compact the diagram by moving the blocks closer to each other. Think of lines as contracting rubber bands.

Cite As

Joerg Buchholz (2021). BOT (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!