Древовидная глубина
D = treedpth(T)
treedpth является утилитой древовидного управления.
D = treedpth( возвращает глубину T)D древовидного 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