Get screen size (dynamic)
by Bill York
03 May 2006
(Updated 03 May 2006)
Same as get( 0, 'ScreenSize' ), but dynamic
|
Watch this File
|
| File Information |
| Description |
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. |
| Acknowledgements |
This submission has inspired the following:
Get Monitor Dimensions
|
| MATLAB release |
MATLAB 7.2 (R2006a)
|
| Other requirements |
Windows only |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com