isCommented
Determine if graphical object is commented out
Description
returns a logical value that indicates if a graphical object is commented out. The
function returns logical tf
= isCommented(graphicalObject
)1
(true
) if:
The graphical object is explicitly commented out. To explicitly comment out an object, set its
IsExplicitlyCommented
property totrue
. Alternatively, you can right-click the graphical object and select Comment Out.The graphical object is implicitly commented out. In this case, its
IsImplicitlyCommented
property has a value oftrue
. An object is implicitly commented out when you explicitly comment out a state, box, or function that contains the object. Additionally,Transitions are implicitly commented out when you comment out their source or destination.
Entry and exit ports are implicitly commented out when you comment out their matching entry or exit junction.
Otherwise, the function returns logical 0
(false
).
Examples
Input Arguments
Version History
Introduced in R2016a