Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get screen size (in pixels) for secondary monitor

Tags:

matlab

Is there any way to get the screen size in pixels for a secondary monitor using Matlab? get(0,'ScreenSize') seems to only recognize the screen on the main monitor.

like image 809
mirri66 Avatar asked Mar 07 '11 05:03

mirri66


People also ask

What is the resolution of 2 1920x1080 monitors?

PPI and Screen Size Picture this – you have two monitors side by side, both with a Full HD 1080p Full HD resolution. This means that both have 1,920 horizontal pixels and 1,080 vertical pixels.


1 Answers

Try using get(0,'MonitorPositions') instead. It returns the width and height of primary and secondary monitors, in pixels.

like image 113
Andreass Avatar answered Sep 18 '22 17:09

Andreass