Stateflow.findMatchingPort
Description
returns a matchingPort
= Stateflow.findMatchingPort(port
)Stateflow.Port
object that matches the specified
port or junction.
Note
Typically, Stateflow.findMatchingPort
returns a single
Stateflow.Port
object. However, when an entry or exit junction is
located in the top level of a linked atomic subchart,
Stateflow.findMatchingPort
returns an array that contains a
separate Stateflow.Port
object for each instance of the atomic subchart
that is open.
Examples
Input Arguments
Tips
If you move an entry or exit junction to a different parent, Stateflow® deletes the
Stateflow.Port
object for the matching port and creates aStateflow.Port
object on the new parent. To identify the new matching port, use theStateflow.findMatchingPort
function.
Version History
Introduced in R2021b