Main Content

slreportgen.utils.isCommented

Check if object is commented out

Description

example

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

Examples

Check If System Is Commented Out

Run the following command to access the supporting files used in this example.

openExample('rptgenext/SimulinkReportGeneratorFilesExample');
load_system('slrgex_sf_car')
tf = slreportgen.utils.isCommented('slrgex_sf_car/Vehicle')
tf =

  logical

   0

In this case, the slrgex_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