Main Content

slreportgen.utils.isCommented

Check if object is commented out

Description

tf = slreportgen.utils.isCommented(obj) tests whether the input Simulink® or Stateflow® object is commented out.

example

Examples

collapse all

load_system("sf_car")
tf = slreportgen.utils.isCommented("sf_car/Vehicle")
tf = logical
   0

In this case, the sf_car model is not commented out.

Input Arguments

collapse all

Simulink or Stateflow object to check for being commented out, specified as a string or character array of the Simulink object path or handle or Stateflow object.

Output Arguments

collapse all

Whether input is a masked system, returned as 1 (true) if the input system is masked. Otherwise, it returns 0 (false).

Version History

Introduced in R2018b