What does this code mean set(0,'Units','Pixels');

조회 수: 9 (최근 30일)
Erum
Erum 2014년 9월 20일
댓글: Erum 2014년 10월 1일
What does this code mean set(0,'Units','Pixels');

채택된 답변

Star Strider
Star Strider 2014년 9월 20일
I believe it sets the root object (the computer screen) 'Units' property to 'Pixels' (the default).
  댓글 수: 2
Erum
Erum 2014년 9월 20일
Thank you
Star Strider
Star Strider 2014년 9월 20일
My pleasure!

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

추가 답변 (1개)

Guillaume
Guillaume 2014년 9월 20일
편집: Guillaume 2014년 9월 20일
0 is the root of all graphics objects. So this sets the Unit property of the root to pixels. See this page for a full description of all the properties of the root.
In this case, it sets the unit for the values returned by ScreenSize and PointerLocation to pixel (the default).
  댓글 수: 3
Guillaume
Guillaume 2014년 9월 20일
It's a bit sad you accepted a less detailed answered as the right one :(
Erum
Erum 2014년 10월 1일
I m new to matlab. so i was thinking to accept both. i was not aware that i can only accept one. so by mistake i accepted that at first. your answer was pretty helpful. Thats why i thank you.

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

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by