MATLAB: Calling node’s parent node in a tree in app designer

app designerchildMATLABnodeparenttree

good day,
I have a tree with two parent nodes node a and node b
each node have it's own children
I am trying to be able to call the name of the parent node for any selected child node
also I would like to add a button that deletes all children nodes when I want to

Best Answer

parent=app.uitree.selectednode.Parent