SCREENSIZE is a Matlab program that determines the dimensions of your screen. It is used by other utilities to position GUI elements.
[left,bottom,width,height] = screensize
returns the screen-size in pixels.
[left,bottom,width,height] = screensize(units)
returns the screen-size in user-specified units of measurement. Valid values for units' are: 'inches', 'centimeters', 'normalized', 'points', 'pixels', and 'characters'.
The coordinates left and bottom correspond with the bottom left point of the screen. [left bottom] = [1 1]
when expressed in pixel units; for the other units [left bottom] = [0 0]
.