Main Content

treeord

    Description

    treeord is a tree-management utility.

    example

    ord = treeord(t) returns the order of the tree t.

    Examples

    collapse all

    Create a tree of order 3 and depth 2.

    t = ntree(3,2);

    Plot the tree.

    plot(t)

    Use the treeord function to obtain the tree order.

    ord = treeord(t)
    ord = 3
    

    Input Arguments

    collapse all

    Tree, specified as an ntree, dtree, or wptree object.

    Version History

    Introduced before R2006a

    See Also