Stateflow User's Guide Previous page   Next Page
Stateflow.Junction

Constructor for creating a junction

Syntax

Description

The Stateflow.Junction method is a constructor method for creating a junction in a parent chart, state, box, or function, that returns a handle to the Junction object for the new junction.

Arguments

parent
Handle to the object for the parent chart, state, box, or function of the new junction

Returns

junc_new
Handle to the Junction object for new junction

Example

If sA is a handle to a State object for the existing state A, the following command creates a new junction parented (contained by) state A:

The new junction appears in the middle of state A in the diagram editor. junc_new is a handle to the Junction object for the new junction that you use to set its properties, and execute its methods.


Previous page  Stateflow.Function Stateflow.Note Next page

© 1994-2005 The MathWorks, Inc.