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 Center および File ExchangeCreating, 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