Clean up Simulink block diagram
Mostrar comentarios más antiguos
Is there an automatic way rearrange a Simulink block diagram so that it is easy to read? For example:
- Straighten paths where possible
- Minimize use of white space so map is compact
- Align blocks along program flow path
For example, clean_up_simulink(myModel) would perform these tasks then save the revised model.
1 comentario
Mathworks should invest the energy to develop an auto-cleanup feature. Tools like these are expected for serious and relevant 21st century software. Yes, it is non-trivial, but take a look at National Instrument's LabView--they've implemented such a feature beautifully and it saves hours of aggravation especially if you are developing complex code.
Respuesta aceptada
Más respuestas (4)
Anh Tran
el 31 de En. de 2020
5 votos
From MATLAB R2019b, you can improve your diagram layout and appearance by opening the FORMAT tab on the toolstrip and click on Auto Arrange. This command can realign, resize, and move blocks and straighten signal lines.
In MATLAB R2019a, select Diagram > Arrange > Arrange Automatically.
Hope this helps.
1 comentario
Naga Sai Sameer Sathwick Atyam
el 19 de En. de 2023
how to do in 2016a version as this feature is not available
João
el 21 de Mayo de 2014
1 voto
I know that this post is from two years ago, but I want to check if this function as already been implemented.
Thanks,
Joe
el 11 de Mzo. de 2016
0 votos
I completely agree with Ben. LabVIEW has a very nice solution and has had one for years. I always find myself very frustrated working with the Simulink editor. I find it clunky and time consuming. TMW really needs to invest in a utility to automatically clearn up at least a single wire but preferably the entire diagram.
I also find it absolutely annoying that Simulink doesn't follow the standard set by other applications that the scroll wheel pans the diagram instead of zooming. Very annoying.
Monika Jaskolka
el 13 de Abr. de 2017
0 votos
Doesn't look like anything is built-in for Simulink. In 2017a there is "Stateflow Layout" which automatically improves the layout of charts.
However, there is this tool on the File Exchange that works on Simulink models: https://www.mathworks.com/matlabcentral/fileexchange/51228-auto-layout-tool
2 comentarios
Rashmi Bharadwaja
el 31 de Mayo de 2017
This link can help clean your Simulink models to some extent.
http://blogs.mathworks.com/pick/2014/04/25/clean-up-your-simulink-model/
Praveen Potluri
el 1 de Ag. de 2017
You can use the goto block and the from block from the simulink library so that there won't be too many overlapping lines. It is not a automatic way but your block diagram looks clean.
Categorías
Más información sobre Programmatic Model Editing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!