Main Content

up

Return parent of object

Syntax

parentObject = up(thisObject)

Description

The up function returns the parent of this object.

Arguments

thisObject

Object for which to return parent (containing) object

Returns

parentObject

Object containing thisObject

Examples

Assume that a chart has two states, A and B, and state A contains state B. If the object sB represents the state B, then the command returns the parent p of state B, which is state A.

p = up(sB)
Introduced before R2006a