what is the root object?

29 views (last 30 days)
best16 programmer
best16 programmer on 22 Jun 2017
Commented: Steven Lord on 15 Apr 2019
hello,everyone can you please explain what is the root object and it utility for the matlab gui applications
thank you

Sign in to comment.

Answers (1)

Jan on 22 Jun 2017
To post it as an answer, not only as comment:
This is explained in the documentation, see doc groot
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:
Steven Lord
Steven Lord on 15 Apr 2019
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.

Sign in to comment.


Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!