How can I trigger Stateflow's "Arrange Automatically" via the API?

조회 수: 5 (최근 30일)
Alex Hirzel
Alex Hirzel 2023년 1월 19일
댓글: Alex Hirzel 2023년 1월 27일
You can arrange a Stateflow chart within the editor by using Ctrl+Shift+A to "Arrange Automatically". How can I trigger this functionality when programmatically generating a Stateflow chart? For instance, the analogous feature in Simulink can be accessed from MATLAB via the Simulink.BlockDiagram.arrangeSystem function.

답변 (1개)

Kunal Kandhari
Kunal Kandhari 2023년 1월 19일
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.
Please see the section titled Arrange Model Layouts Automatically in this help document.

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by