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

조회 수: 7 (최근 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 CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by