Skip to Main Content Skip to Search
Product Documentation

up - Return parent of object

Syntax

parentObject = thisObject.up

Description

The up method returns a handle to 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

p = sB.up

returns a handle p to the parent of B, which is state A.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS