Simulink model layout
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Kaustubha Govind
2012 年 2 月 13 日
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 件のコメント
Kaustubha Govind
2012 年 2 月 15 日
Sorry - I don't know of a tool that performs such automatic alignment.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Interactive Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!