How to use Simulink's "Arrange" options programmatically?
42 views (last 30 days)
Show older comments
Monika Jaskolka
on 25 Nov 2018
Answered: Arvind Sathyanarayanan
on 6 Dec 2018
Simulink has many useful functions in the context menu for arranging blocks in a model, as shown in the image below. Is it possible to use these functions programmatically instead of via the context menu? Where can I find the API for these functions?
0 Comments
Accepted Answer
Arvind Sathyanarayanan
on 6 Dec 2018
I am not aware of ways to align or distribute blocks programmatically but, starting Matlab 2018b you can use Simulink.BlockDiagram.arrangeSystem(system) from your MATLAB command window to automatically arrange your model.
0 Comments
More Answers (0)
See Also
Categories
Find more on Programmatic Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!