Here are the tasks for modeling hybrid systems containing mode logic in continuous time using Stateflow® charts.
|Task||Example in Bouncing Ball Model|
Choose a solver that supports continuous states (see Solvers 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.