| Wavelet Toolbox | Search  Help Desk |
| treedpth | Examples See Also |
D = treedpth(T)
treedpth is a tree management utility.
D = treedpth(T) returns the depth D of the tree T.
% Create binary tree (tree of order 2) of depth 3.
t = maketree(2,3);
% Plot tree structure t.
plottree(t)

% Tree depth.
treedpth(t)
ans =
3
maketree, wtreemgr