Main Content

slreportgen.utils.isStateTransitionTableBlock

Check if object is Transition Table block

Description

example

tf = slreportgen.utils.isStateTransitionTableBlock(obj) tests whether the input obj is a Stateflow® State Transition Table block.

Examples

Check If Block Is a State Transition Table Block

load_system('slrgex_sf_car')
tf = slreportgen.utils.isStateTransitionTableBlock...
   ('slrgex_sf_car/shift_logic/downshifting')
tf =

  logical

   0

In this case, the downshifting object in the Stateflow shift_logic chart of the slrgex_sf_car model is not a State Transition Table block.

Input Arguments

collapse all

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

Output Arguments

collapse all

Whether input is a State Transition Table block, returned as 1 (true) if the input is a State Transition Table block. Otherwise, it returns 0 (false).

Version History

Introduced in R2018b