Position and size of entry or exit ports
Stateflow.PortPosition object to control the position and
size of an entry or exit port.
Each entry or exit port has its own
Stateflow.PortPosition object. To
Stateflow.PortPosition object, use the
Position property for the
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
set functions, respectively. For more information, see Modify Properties and Call Functions of Stateflow Objects.
Center — Position of center of port or junction
Position of the center of the port or junction, specified as a two-element numeric
[x y] of coordinates relative to the upper left corner of the
Radius — Radius of port or junction
Radius of the port or junction, specified as a scalar.
Change Size of Entry Junction
Set the radius of the entry junction
entryJunction.Position.Radius = 10;
Introduced in R2021b