Main Content

slreportgen.utils.isStateTransitionTable

Check if object is state transition table

Since R2022a

    Description

    example

    tf = slreportgen.utils.isStateTransitionTable(obj) tests whether the input object is a state transition table or Stateflow® state transition table object.

    Examples

    collapse all

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

    openExample('rptgenext/SimulinkReportGeneratorFilesExample');

    To check if an object is a state transition table, use the slreportgen.utils.isStateTransitionTable function as shown.

    load_system('sf_car')
    tf = slreportgen.utils.isStateTransitionTable...
       ('slrgex_stt_boiler/State Transition Table')
    tf =
    
      logical
    
       1

    In this case, the State Transition Table object in the slrgex_stt_boiler model is a state transition table.

    Input Arguments

    collapse all

    Object to check for being a state transition table, specified as a string or character vector of the object path or handle.

    Output Arguments

    collapse all

    Whether the input object is a state transition table, returned as 1 (true) if the input is a state transition table. Otherwise, if the input object is not a state transition table, it returns 0 (false).

    Version History

    Introduced in R2022a