Here are the tasks for modeling hybrid systems containing mode logic in continuous time using Stateflow® charts.
|Step||Task||Example in Bouncing Ball Model|
Choose a solver that supports continuous states (see Choose a Solver in the Simulink® User's Guide documentation).
Add system dynamics.
Validate semantics, based on design considerations for continuous-time simulation.
Simulate the chart.
Debug and revise.