Main Content

slreportgen.utils.isTruthTable

Check if object is Truth Table

Description

tf = slreportgen.utils.isTruthTable(obj) tests if the input obj is a Simulink® Truth Table block or a Stateflow® Truth Table object.

example

Examples

collapse all

openExample('sf_climate_control');
tf = slreportgen.utils.isTruthTable...
   ('sf_climate_control/ClimateController')
tf =

  logical

   1

In this case, the ClimateController block in the sf_climate_control model is a Truth Table block.

Input Arguments

collapse all

Object to check for being a Truth Table block or object, specified as a string or character array of the object path or handle.

Output Arguments

collapse all

Whether input is a Truth Table block or object, returned as 1 (true) if the input system is a truth table. Otherwise, it returns 0 (false).

Version History

Introduced in R2018b