Create truth table function
truth_table_new = Stateflow.TruthTable(parent)
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.
| Handle to parent chart, state, box, or function of new truth table |
| Handle to Truth Table object for new truth table |
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.