Main Content

State Transition Tables

Design modal logic in tabular form

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 TableRepresent modal logic in tabular format

Functions

convertToChartConvert state transition table to Stateflow chart (Since R2023b)
convertToSTTConvert Stateflow chart to state transition table (Since R2023b)
exportAsStructExport contents of state transition table as structure array (Since R2022b)

Topics

Troubleshooting

Debug Run-Time Errors in a State Transition Table

Use breakpoints to debug state transition tables.

Featured Examples