Simuling Create Subsystem from selection causes inports and outports to lay on the side
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Christian Günther
el 13 de Jul. de 2021
Editada: Devanuj Deka
el 13 de Jul. de 2021
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
0 comentarios
Respuesta aceptada
Devanuj Deka
el 13 de Jul. de 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 comentarios
Devanuj Deka
el 13 de Jul. de 2021
Editada: Devanuj Deka
el 13 de Jul. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Subsystems en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!