このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
treedpth
ツリーの深さ
構文
D = treedpth(
T
)
例
% Create binary tree (tree of order 2) of depth 3. t = ntree(2,3); % Plot tree t. plot(t)
% Tree depth. treedpth(t) ans = 3
バージョン履歴
R2006a より前に導入
このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
ツリーの深さ
D = treedpth(
T
)
% Create binary tree (tree of order 2) of depth 3. t = ntree(2,3); % Plot tree t. plot(t)
% Tree depth. treedpth(t) ans = 3
R2006a より前に導入