collapse
Collapse tree node
Description
collapse(
collapses the nodes of
the parent tree or tree node. If parent
)parent
is a
Tree
object, then the top-level nodes in the tree display in
a collapsed state. Any children beyond the top level do not collapse. If parent is a
TreeNode
object, then the specified node displays in a
collapsed state, but the children inside that node do not collapse.
collapse(
collapses all
child nodes of the parent tree or tree node.parent
,'all')
Examples
Input Arguments
Version History
Introduced in R2017b
See Also
expand
| move
| scroll
| uitree
| uitreenode