Programming state machines and complex logic using deeply nested if-else or switch-case statements can be difficult to share, review, and maintain. To address this Stateflow® lets you describe how your MATLAB® algorithms react to input signals, events, and time-based conditions using state transition diagrams and flow charts. In this webinar we show how Stateflow® lets you graphically program and execute MATLAB® objects. These objects can be used to represent communication protocols, user interfaces, pattern detection, and other logic for reactive systems. You can use graphical animation to analyse and debug your logic, and use edit-time and run-time checks to ensure design consistency and completeness.