Rotate screen orientation by m-file.

How to rotate the orientation of the second screen from landscape to portrait on a dual-monitor system

Respuestas (1)

Pratyush
Pratyush el 16 de Nov. de 2023

0 votos

Hi Kei,
I understand that you want to change your screen's orientation using matlab script. Rotating the screen orientation programmatically is generally not within the scope of MATLAB's functionality. MATLAB is primarily designed for numerical computing, not for controlling system-level settings.
However, you can potentially accomplish this by using MATLAB to call a system command using the "system()" function, provided that there is a command-line utility available on your system that can change screen orientation.
I think "DisplaySwitch.exe" on windows machine could help you achieve this.
Hope this helps.

Categorías

Más información sobre Environment and Settings en Centro de ayuda y File Exchange.

Productos

Versión

R2017b

Etiquetas

Preguntada:

el 16 de Nov. de 2023

Respondida:

el 16 de Nov. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by