Returns a binary Nx1 vector dist indicating the nodes of tree intree, whose segments cross path distance l from the root. If l is a vector of length n, dist becomes an Nxn matrix.

TREES

Example:

>> dist_tree (sample2_tree, [40 60])'

[0 0 0 0 1 0 0 0 0 0 1 0 0 0 1;  → nodes crossing 40 Ám
_0 0 0 0 0 0 0 1 0 0 0 0 0 0 0]  → nodes crossing 60 Ám

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License