Get screen size (dynamic)

版本 1.0.0.1 (3.6 KB) 作者: Bill York
Same as get( 0, 'ScreenSize' ), but dynamic
3.8K 次下载
更新时间 2016/9/1

查看许可证

GETSCREENSIZE Same as get( 0, 'ScreenSize' ), but dynamic

SZ = GETSCREENSIZE returns a 1x4 vector of doubles giving the size of the display in pixels, in the same way as get( 0, 'ScreenSize' ), except it reads the current settings rather than reading a static copy made at MATLAB® startup time.
From "doc rootobject_props":

"Note that the ScreenSize property is static. Its values are read only at MATLAB startup and not updated if system display settings change."

Some applications place windows based on on the display resolution, and the resolution can change - mine does when I disconnect my laptop from my external monitor.

引用格式

Bill York (2024). Get screen size (dynamic) (https://www.mathworks.com/matlabcentral/fileexchange/10957-get-screen-size-dynamic), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Performance and Memory 的更多信息
致谢

启发作品: Get Monitor Dimensions

Community Treasure Hunt

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

Start Hunting!

getScreenSize/

版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0