Stateflow and Stateflow Coder ® For Complex Logic and State Diagram Modeling ® Modeling Simulation Implementation User’s Guide Version 5 How to Contact The MathWorks:…