Stateflow® provides a graphical language that includes state transition diagrams, flow charts, state transition tables, and truth tables. You can use Stateflow to describe how MATLAB® algorithms and Simulink® models react to input signals, events, and time-based conditions.
Stateflow enables you to design and develop supervisory control, task scheduling, fault management, communication protocols, user interfaces, and hybrid systems.
With Stateflow, you model combinatorial and sequential decision logic that can be simulated as a block within a Simulink model or executed as an object in MATLAB. Graphical animation enables you to analyze and debug your logic while it is executing. Edit-time and run-time checks ensure design consistency and completeness before implementation.
Model dynamic systems as finite state machines in Stateflow.
Build state transition diagrams in the Stateflow graphical programming editor.
Control the behavior of a Stateflow chart by using actions in states and transitions.
Design logic at multiple levels in a complex system by using hierarchy.
Implement operating modes that are active at the same time by using parallel states.
Broadcast events from one state to another to synchronize parallel states.
Automatically track which state is active during simulation.
Define chart behavior in terms of simulation time by using temporal logic operators.
Three-hour interactive training course included with Stateflow license
Getting Started With Stateflow
Build and simulate a Stateflow chart in a Simulink model
What Is Stateflow?
Design and simulate state charts by using Stateflow
MATLAB Tech Talks: State Machines
Learn the fundamental concepts of state machines