Main Content

Stateflow.PortPosition

Position and size of entry or exit ports

    Description

    Use a Stateflow.PortPosition object to control the position and size of an entry or exit port.

    Creation

    Each entry or exit port has its own Stateflow.PortPosition object. To access the Stateflow.PortPosition object, use the Position property for the Stateflow.Port object.

    Properties

    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 port or junction, specified as a two-element numeric vector [x y] of coordinates relative to the upper left corner of the chart.

    Radius of the port or junction, specified as a scalar.

    Examples

    collapse all

    Set the radius of the entry junction entryJunction to 10.

    entryJunction.Position.Radius = 10;

    Version History

    Introduced in R2021b