Borrar filtros
Borrar filtros

How to rotate a T-Junction using MATLAB code?

1 visualización (últimos 30 días)
Aiden
Aiden el 16 de Jun. de 2023
Comentada: Aiden el 16 de Jun. de 2023
Hi,
I am trying to create a simscape model using MATLAB script, I have the T-Junction placed in the model using 'add_block' and now trying to rotate the block. I know of the command 'set(gcb,'orientation','left')' to flip the block and 'set(gcb,'orientation','up')' to rotate the T-junction so that A-B runs vertical, this places the C port on the right.
My question is how to rotate the T-Junction so that the C port is on the left?
thanks,
Aiden

Respuestas (2)

VM Sreeram
VM Sreeram el 16 de Jun. de 2023
Hello @Aiden
If you want the C port of the T-Junction on the left, you can rotate the block clockwise by clicking on the block and doing Ctrl+R. Alternatively, right-click the block, click on Format > Rotate Clockwise.
  1 comentario
Aiden
Aiden el 16 de Jun. de 2023
Hi VM Sreeram, thanks for the reply
I am trying to do this using matlab script.

Iniciar sesión para comentar.


Pramil
Pramil el 16 de Jun. de 2023
To rotate the T-junction block in Simulink/Simscape so that the C port is on the left, you can use the command 'set(gcb,'orientation','down')' after adding the block using 'add_block'. This will rotate the block by 180 degrees, putting the C port on the left.
  1 comentario
Aiden
Aiden el 16 de Jun. de 2023
Hi Pramil, thanks for getting back to me.
when I use set(gcb,'orientation','down')' it still has the C on the right?
set(gcb,'orientation','down')'- has the A at the top
set(gcb,'orientation','up')'- has the B at the top
both have the C on the right.

Iniciar sesión para comentar.

Categorías

Más información sobre Model Statistics en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by