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

8 visualizaciones (últimos 30 días)
Erum
Erum el 20 de Sept. de 2014
Comentada: Erum el 1 de Oct. de 2014
What does this code mean set(0,'Units','Pixels');

Respuesta aceptada

Star Strider
Star Strider el 20 de Sept. de 2014
I believe it sets the root object (the computer screen) 'Units' property to 'Pixels' (the default).
  2 comentarios
Erum
Erum el 20 de Sept. de 2014
Thank you
Star Strider
Star Strider el 20 de Sept. de 2014
My pleasure!

Iniciar sesión para comentar.

Más respuestas (1)

Guillaume
Guillaume el 20 de Sept. de 2014
Editada: Guillaume el 20 de Sept. de 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 comentarios
Guillaume
Guillaume el 20 de Sept. de 2014
It's a bit sad you accepted a less detailed answered as the right one :(
Erum
Erum el 1 de Oct. de 2014
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by