Main Content


Position and size of junctions


    Use a Stateflow.JunctionPosition object to control the position and size of a connective or history junction.


    Each junction has its own Stateflow.JunctionPosition object. To access the Stateflow.JunctionPosition object, use the Position property for the Stateflow.Junction object.


    expand all

    Stateflow® API objects have properties that correspond to the values you set in the Stateflow Editor. To access or modify a property, use dot notation. To access or modify multiple properties for multiple API objects, use the get and set functions, respectively. For more information, see Modify Properties and Call Functions of Stateflow Objects.

    Position of the center of the junction, specified as a two-element numeric vector [x y] of coordinates relative to the upper left corner of the chart.

    Radius of the junction, specified as a scalar.


    collapse all

    Set the radius of the connective junction junction to 10.

    junction.Position.Radius = 10;

    Version History

    Introduced before R2006a