State Transition Tables
Design your combinatorial logic in tabular form by using state transition tables. State transition tables provide an easy on-ramp for learning Stateflow® and are an ideal solution for simple, process-oriented, sequential state machines. Detect modeling errors by running diagnostic checks, setting breakpoints, and stepping through actions while monitoring data values.
Blocks
State Transition Table | Represent modal logic in tabular format |
Functions
convertToChart | Convert state transition table to Stateflow chart (Since R2023b) |
convertToSTT | Convert Stateflow chart to state transition table (Since R2023b) |
exportAsStruct | Export contents of state transition table as structure array (Since R2022b) |
Topics
- Model Finite State Machines Using State Transition Tables
Model a finite state machine for sequential modal logic in a concise, compact format.
- Inspect the Design of State Transition Tables
Verify that the logic in your state transition table behaves as intended.
- Model Bang-Bang Controller by Using a State Transition Table
Use a state transition table to model a temperature regulator.
Troubleshooting
Debug Run-Time Errors in a State Transition Table
Use breakpoints to debug state transition tables.