MATLAB and Simulink Training

Stateflow Onramp

Access through Simulink® or Simulink Online


Engaging video tutorials


Hands-on exercises with automated assessments and feedback


Lessons available in English and Japanese

Explore Course Lessons


Course Overview

Familiarize yourself with the course.


State Machines and Stateflow

Understand state machines and how to create them in Stateflow.


Creating State Charts

Learn how to create Stateflow charts.


Stateflow Symbols and Data

Understand Stateflow data and data scope.


Chart Actions

Control chart execution with actions.


Chart Execution

Learn about the relationship between Stateflow chart execution and Simulink.


Project: Robotic Vacuum

Model the supervisory control for a home vacuum robot.


Flow Charts

Use flow charts to model common logic patterns.


Functions in Stateflow

Improve chart readability and reuse code using functions.


Chart Hierarchy

Organize your charts using hierarchy.


Project: Robotic Vacuum Driving Modes

Model the driving modes for a home vacuum robot.

How to Get Started

Required products: Simulink, Stateflow

Students and professors: launch online

Users at commercial, government, or other organizations: launch on desktop

R2019b or later:

  1. Launch MATLAB® and open Simulink.
  2. Select Stateflow Onramp from the Simulink Start Page.

R2019a or prior:

  1. Download the latest version of MATLAB if you already have a license, or request a free trial.
  2. Launch MATLAB® and open Simulink.
  3. Select Stateflow Onramp from the Simulink start page.

Related Courses

Stateflow for Logic Driven System Modeling

A comprehensive introduction to developing state machines with Stateflow.

Simulink Onramp

Get started quickly with the basics of Simulink.