Truth Table Function
R2026bTruth table in Stateflow chart
Description
Use a truth table function to model combinatorial logic in a Stateflow chart. A truth table function evaluates a set of conditions and executes an action based on the combination of condition outcomes. To program the function, double-click the function box to open the truth table editor and add conditions, decisions, and actions.
Truth table functions are not supported in standalone Stateflow charts in MATLAB.
To add a truth table function to a Stateflow chart:
In the object palettes, click the Truth table icon
.Click a location in the chart canvas.
Enter the function signature.
Properties
Version History
Introduced before R2006a