What does this code mean set(0,'Units','Pixels');
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
What does this code mean set(0,'Units','Pixels');
0 Kommentare
Akzeptierte Antwort
Star Strider
am 20 Sep. 2014
I believe it sets the root object (the computer screen) 'Units' property to 'Pixels' (the default).
2 Kommentare
Weitere Antworten (1)
Guillaume
am 20 Sep. 2014
Bearbeitet: Guillaume
am 20 Sep. 2014
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 Kommentare
Siehe auch
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!