MATLAB 도움말 센터
NTREE manager
wtreemgr(option,T,varargin)
wtreemgr(option,T,varargin) returns information on the tree T depending on the value of option. Use varargin to specify additional input arguments associated with the specified option.
option
T
varargin
example
collapse all
wtreemgr
Create a binary tree (a tree of order 2) of depth 3. Plot the tree.
t = ntree(2,3); fig = plot(t);
Programmatically, in Node Label, change the selected item from Depth_Position to Index.
Depth_Position
Index
plot(t,"setNodeLabel",fig,"Index")
Use wtreemgr to find all the descendents of the node at index 2.
wtreemgr("nodedesc",t,2)
ans = 7×1 2 5 6 11 12 13 14
"allnodes"
"isnode"
"istnode"
Tree parameter, specified as one of these:
allnodes
isnode
istnode
"nodeasc"
nodeasc
"nodedesc"
nodedesc
"nodepar"
nodepar
"ntnode"
ntnode
"tnodes"
tnodes
"leaves"
leaves
"noleaves"
noleaves
"order"
treeord
"depth"
treedpth
ntree
dtree
wptree
Tree, specified as a ntree, dtree, or wptree object.
Introduced before R2006a
allnodes | istnode | leaves | nodeasc | nodedesc | nodepar | noleaves | ntnode | treedpth | treeord
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의