Simuling Create Subsystem from selection causes inports and outports to lay on the side

1 回表示 (過去 30 日間)
Hello,
When I create a subsystem from a selection, sometimes the inports and outports lay on the side and look like this:
After rotating the Inport it is still not looking normal:
Flip the Block does not work either.
How can I turn the block to its normal apperarance ?
Best Regards
Christian

採用された回答

Devanuj Deka
Devanuj Deka 2021 年 7 月 13 日
Dear Christian,
When you hover over the inport block using your cursor, the corners of the block will become visible. You can select and hold any corner and drag it to reorient the block, similar to how you would do for a file explorer window or a MATLAB figure window.
Here is a video link illustrating the process: Video link
  2 件のコメント
Devanuj Deka
Devanuj Deka 2021 年 7 月 13 日
編集済み: Devanuj Deka 2021 年 7 月 13 日
You're welcome!
Alternatively, if you wanted to change the shape of the block from the command line, you can use the 'Position' parameter.
The value of 'Position' is a set of coordinates that define the length, breadth and position of the block in the simulink model.
set_param('modelName/Inport','Position',[x_min y_min x_max y_max]);
Here, the block's horizontal length is ( x_max x_min ), the vertical height is ( y_max y_min ), and the center of the block is at the position given by the coordinates ( (x_min+x_max)/2 , (y_min+y_max)/2 ).
In accordance with the above description, you can set the 'Position' values adhering to your desired orientation.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

製品


リリース

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by