up - Return the parent object of this object

Syntax

parentObject = thisObject.up

Description

The up method returns a handle to the object that contains an this object.

Arguments

thisObject

Object for which to return parent (containing) object

Returns

parentObject

Object containing thisObject

Example

Assume that a Stateflow 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.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS