Stateflow User's Guide Previous page   Next Page
Stateflow.TruthTable

Constructor for creating a truth table

Syntax

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

Example

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:

The new truth table is unnamed and appears in the upper left corner inside of state A in the diagram editor. 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.


Previous page  Stateflow.Transition struct Next page

© 1994-2005 The MathWorks, Inc.