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

1 view (last 30 days)
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

Accepted Answer

Devanuj Deka
Devanuj Deka on 13 Jul 2021
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 Comments
Devanuj Deka
Devanuj Deka on 13 Jul 2021
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.

Sign in to comment.

More Answers (0)

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by