What does this code mean set(0,'Units','Pixels');
12 次查看(过去 30 天)
显示 更早的评论
What does this code mean set(0,'Units','Pixels');
0 个评论
采纳的回答
Star Strider
2014-9-20
I believe it sets the root object (the computer screen) 'Units' property to 'Pixels' (the default).
更多回答(1 个)
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!