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 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