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!