this is a meta-function

Subdivides nodes of tree intree into bins bins (number, by default 10, or exact binning values) according to Nx1 vector v. By default, v is the euclidean distance to the root (see “eucl_tree”).

TREES

bi outputs an Nx1 vector with affiliation of each node to used bins bins. bh counts up the number of occurrences in each bin.

Examples:

>> [bi bins bh] = bin_tree (sample_tree, [], 4)

>> bar (bh)

plotting a histogram results in a rudimentary sholl analysis plot:

TREES

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