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. To detect modeling errors, run diagnostic checks, set breakpoints, and step through actions while monitoring data values.


State Transition TableRepresent modal logic in tabular format


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)



Debug Run-Time Errors in a State Transition Table

Use breakpoints to debug state transition tables.