get(0,'ScreenSize') can not get right screen size

72 ビュー (過去 30 日間)
Junwei
Junwei 2011 年 9 月 12 日
回答済み: Rini Varghese 2017 年 9 月 7 日
I want to use scrsz = get(0,'ScreenSize') to get the screenSize. My screen resolution is 1680x1050.I think I should get a value of [ 1 1 1680 1050], but I get a result of [1 251 1280 800]. Do anyone know the problem? I use matlab 2010a. Thanks
  4 件のコメント
Junwei
Junwei 2011 年 9 月 12 日
I do not have multiple monitors. I connect that computer using my laptop. I think it is the reason.
Image Analyst
Image Analyst 2011 年 9 月 12 日
What does this mean: "I connect that computer using my laptop"? This implies that there are TWO computers involved, namely "that computer" and your "laptop". Is that correct, that you have two computers? How are they connected? Or do you just have your one single computer (your laptop) and it is connected to an external monitor?

サインインしてコメントする。

回答 (2 件)

Jan
Jan 2011 年 9 月 12 日
It has been reported frequently, that some graphics drivers have problems to reply the screen size correctly. This usually concern the multi-monoitor setup and the root's MonitorPositions property. What does this reply:
get(0, 'MonitorPositions')
Have you tried these tools from the FEX: FEX:GetScreenSizeDynamic, FEX: GetMonitorDimension.
  1 件のコメント
Junwei
Junwei 2011 年 9 月 12 日
get(0, 'MonitorPositions'), it is give the right result. I think the problem is I remote access the computer through my laptop, whoes resolution is 1280x600. I reinstall ML, then everything is fine.

サインインしてコメントする。


Rini Varghese
Rini Varghese 2017 年 9 月 7 日

カテゴリ

Help Center および File ExchangeHistorical Contests についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by