Simulink model layout
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gagik Hakobyan
le 13 Fév 2012
Modifié(e) : Matt J
le 13 Oct 2013
Hello all I have a matlab function which generates a simulink model for specific tasks, i.e, it instantiates blocks, ports and connects them. But the generated model does not look fine, so i have to manually place the blocks and ports. I need to do this in automated way and finally have some model layout. Any suggestion, please.
Thanks, Gagik
0 commentaires
Réponse acceptée
Kaustubha Govind
le 13 Fév 2012
You can use the set_param command to programmatically set the position of a block:
set_param('path/to/block', 'Position', [left, top, right, bottom])
The origin is located in the upper left corner of the model window.
2 commentaires
Kaustubha Govind
le 15 Fév 2012
Sorry - I don't know of a tool that performs such automatic alignment.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interactive Model Editing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!