Skip to Main Content Skip to Search
Product Documentation

Stateflow.Junction - Constructor for creating 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 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

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.

  


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