Use State Transition Tables (STT) to design your Stateflow® logic. Learn how to design your STT with MATLAB® as the action language, or C as the action language. Detect errors in your STT by running diagnostics, and generate code from your STT using Embedded Coder.
|State Transition Table||Represent modal logic in tabular format|
A state transition table is an alternative way of expressing sequential modal logic.
State transition tables support a subset of the most commonly used elements in Stateflow charts.
A state transition table contains the following components:
At the MATLAB command prompt, enter:
Use MATLAB instead of C as action language syntax.
Use these operations to set up your state transition table.
You can run diagnostic checks on a state transition table.
A state transition table is an alternative way of expressing modal logic.
Stateflow software automatically generates a read-only state transition diagram from the state transition table you create.
Describes generation of an interaction with the state transition matrix.
To visualize a flow of logic, you can highlight one transition cell per row in your state transition table.
Trace Stateflow Elements in Generated Code (Embedded Coder)
Trace different Stateflow elements to corresponding lines in generated code.
Use breakpoints to debug state transition tables.