Visualize an expression as tree
This functionality does not run in MATLAB.
prog::exprtree(ex) visualizes any MuPAD® expression ex as tree.
Every expression in MuPAD is internally a tree. The operations are the nodes, and the operands are the leafs.
The example shows the structure of the expression a + b*2 - d*(a + c):
prog::exprtree(a + b*2 - d*(a + c))
_plus | +-- a | +-- _mult | | | +-- b | | | `-- 2 | `-- _mult | +-- d | +-- _plus | | | +-- a | | | `-- c | `-- -1
The option Quiet suppresses the output, only the tree is returned:
prog::exprtree(a + b*2 - d*(a + c), Quiet)
With this option no output will be printed on screen. The return value of type adt::Tree represents the tree structure of ex.
Object of type adt::Tree