what is the root object?

조회 수: 12 (최근 30일)
best16 programmer
best16 programmer 2017년 6월 22일
댓글: Steven Lord 2019년 4월 15일
hello,everyone can you please explain what is the root object and it utility for the matlab gui applications
thank you
  댓글 수: 2
Adam
Adam 2017년 6월 22일
편집: Adam 2017년 6월 22일
doc groot
(if you have R2014b or later)
Stephen23
Stephen23 2017년 6월 22일

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2017년 6월 22일
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:
get(0)
get(groot)
  댓글 수: 2
Jordan Mandel
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
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 CenterFile Exchange에서 Graphics Object Identification에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by