Stateflow.Junction

Create junction

Syntax

junc_new = Stateflow.Junction(parent)

Description

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

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

Examples

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:

junc_new = Stateflow.Junction(sA)

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

Introduced before R2006a