commentedBy
Description
returns an array of the explicitly commented objects that cause the graphical object
objArray
= commentedBy(graphicalObject
)graphicalObject
to be commented out. The graphical object
is commented out when:
The
IsExplicitlyCommented
property has a value oftrue
. In this case,objArray
includes the graphical object.The
IsImplicitlyCommented
property has a value oftrue
. In this case,objArray
includes the explicitly commented states, boxes, or functions that contain the object. Additionally,If
graphicalObject
is a transition,objArray
includes the explicitly commented objects that cause the source or destination to be commented out.If
graphicalObject
is an entry or exit port,objArray
includes the explicitly commented objects that cause the matching entry or exit junction to be commented out.
Examples
Input Arguments
Limitations
When a graphical object is contained in an atomic subchart or an atomic box, the
commentedBy
function returns only explicitly commented objects that are also contained in the subchart or box.
Version History
Introduced in R2023a