Rotate screen orientation by m-file.

2 次查看(过去 30 天)
kei hin
kei hin 2023-11-16
回答: Pratyush 2023-11-16
How to rotate the orientation of the second screen from landscape to portrait on a dual-monitor system

回答(1 个)

Pratyush
Pratyush 2023-11-16
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.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by