Model and simulate decision logic using state machines and flow charts

Stateflow® is an environment for modeling and simulating combinatorial and sequential decision logic based on state machines and flow charts. Stateflow lets you combine graphical and tabular representations, including state transition diagrams, flow charts, state transition tables, and truth tables, to model how your system reacts to events, time-based conditions, and external input signals.

With Stateflow you can design logic for supervisory control, task scheduling, and fault management applications. Stateflow includes state machine animation and static and run-time checks for testing design consistency and completeness before implementation.


Designing Logic

Model system logic using state machines, flow charts and truth tables.

Learn more

Integrating Components

Create reusable components for large scale modeling.

Learn more

Scheduling Algorithms

Schedule algorithms implemented in Simulink or MATLAB.

Learn more

Simulating a Model and Analyzing the Results

Visualize the behavior of your system for analysis and debugging by simulating your model.

Learn more

Validating the Design and Generating Code

Validate your design against requirements and generate code for implementation on your embedded system.

Learn more

Product Resources

Discover more about Stateflow by exploring these resources.


Explore documentation for Stateflow functions and features, including release notes and examples.


Browse the list of available Stateflow functions.

Technical Articles

View articles that demonstrate technical advantages of using Stateflow.

User Stories

Read how Stateflow is accelerating research and development in your industry.

Community and Support

Find answers to questions and explore troubleshooting resources.

Product Requirements

View product requirements for the latest release of Stateflow.

Try or Buy

Get a Free Trial

Test drive Stateflow.

Get a trial

Ready to Buy?

Purchase Stateflow and explore related products.

Contact sales
Pricing and licensing

Have Questions?


Contact Rick Boldt,
Stateflow Technical Expert

Email Rick

Stateflow requires: MATLAB, Simulink

Related Solutions

Use Stateflow to solve scientific and engineering challenges:

News and Events

Get a MathWorks engineer's perspective on Simulink and Model-Based Design.

Control Logic Made Easy with Stateflow