In Stateflow®, step through your simulation in detail. You can set breakpoints, watch data values, and step through different functions in your state diagrams.
You can perform most debugging tasks directly from the chart in the Stateflow Editor.
During simulation, animation provides visual verification that your chart behaves as you expect.
You enable debugging for a chart when you set a breakpoint.
Shows you a variety of ways that you can keep track of the values for Stateflow data and self activity during simulation
In the Breakpoints tab of the Stateflow Breakpoints and Watch window, you can enter a MATLAB expression as a condition on a Stateflow breakpoint.
Control Chart Execution from the Stateflow Editor
Shows you how to debug run-time errors in Stateflow charts with an example model
Shows how to change Stateflow data values during simulation while the chart is in debug mode
Use breakpoints to debug state transition tables.
Describes how to comment out Stateflow objects to exclude them from simulation.
Describes common modeling errors that are flagged by Stateflow
Describes guidelines for avoiding unwanted recursive behavior