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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ