Create bushy tree
[Tree,NumStates] = mkbush(NumLevels,NumChild,NumPos,Trim,NodeVal)
Number of time levels of the tree.
(Optional) Initial value at each node of the tree. Default
[Tree,NumStates] = mkbush(NumLevels,NumChild,NumPos,Trim,NodeVal) creates
a bushy tree
Tree with initial values
NumStates is a
containing the number of state vectors in each level.
Create a tree with four time levels, two branches per node,
and a vector of three elements in each node with each element initialized
Tree = mkbush(4, 2, 3); treeviewer(Tree)