Main Content

Stateflow.TruthTable

Create truth table function

Syntax

truth_table_new = Stateflow.TruthTable(parent)

Description

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

Arguments

parent

Handle to parent chart, state, box, or function 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.

Introduced before R2006a