Screen Resolution

조회 수: 15 (최근 30일)
Yavuz kaya
Yavuz kaya 2012년 4월 7일
Hi all,
I have a problem using get(0,'screensize') command. I use Matlab 2010b on MAC.
My screen size is 2560x1440 pixel. I executed the get(0,'screensize') command and the result is a vector, [1 1 2560 1418].
Then I changed the screen resolution to 800x600, and executed the same command, get(0,'screensize'). The result is a vector of [1 -839 2560 1418] instead of [1 1 800 600].
Apparently there is something weird with get(0,'screensize') command. Does anybody has an explanation to this?
Thanks in advance. Yavuz
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 4월 7일
To check: you exited MATLAB before changing the screen size?

댓글을 달려면 로그인하십시오.

답변 (1개)

Daniel Shub
Daniel Shub 2012년 4월 7일
You may be better off with
get(0, 'MonitorPositions');
Then again, MATLAB has difficulties getting the monitor and screen sizes.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by