Skip to Main Content Skip to Search
Product Documentation

Stateflow.TruthTable - Constructor for creating truth table

Syntax

truth_table_new = Stateflow.TruthTable(parent)

Description

The Stateflow.TruthTable method is a constructor method for creating truth tables in a parent chart, state, box, or function, that returns a handle to a Truth Table object for the new truth table.

Arguments

parent

Handle to parent chart or state of new truth table

Returns

truth_table_new

Handle to Truth Table object for new truth table

Examples

If sA is a handle to a State object for the existing state A, the following command creates a new truth table parented (contained by) state A:

truth_table_new = Stateflow.TruthTable(sA)

The new truth table is unnamed and appears in the upper left corner inside of state A in the chart. truth_table_new is a handle to the Truth Table object for the new truth table that you use to rename the truth table, set its properties, and execute its methods.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS