what is the root object?
11 次查看(过去 30 天)
显示 更早的评论
hello,everyone can you please explain what is the root object and it utility for the matlab gui applications
thank you
2 个评论
Stephen23
2017-6-22
This object hierarchy is explained in the MATLAB documentation:
回答(1 个)
Jan
2017-6-22
To post it as an answer, not only as comment:
You can search in the documentation also:
docsearch root
A short summary: The root object is the parent object of all figures. Some of its properties belong to the Matlab session, as e.g. the CurrentFigure. Some concern the current computer setup as the ScreenSize or the PointerLocation.
In older Matlab versions the graphics handle of the root object was 0. See:
get(0)
get(groot)
2 个评论
Jordan Mandel
2019-4-15
Random question: I use the 'DefaultFigureVisible' property of groot (I actually use '0') to generate figures while a script is runnning so that I can work on other things on the computer without constantly being interrupted. But this is not listed among the properties of groot when I do get(groot) . Is DefaultFigureVisible a hidden/undocumented property?
Steven Lord
2019-4-15
It's not really a property of groot at all. It's a way to tell groot that you want to set the Default 'Visible' property for all new Figure objects to a specific value. See this documentation page for more information.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Identification 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!