Use Stateflow® to create state machines that define the behavior of
MATLAB apps. Stateflow charts can monitor your interactions with an app and
enable or disable app widgets accordingly. For charts in Simulink® models, use the keyword
establish a bidirectional connection between the app and the chart, as
illustrated in Model a Power Window Controller. For standalone
charts in MATLAB, use the app startup callback to create a chart object
that can communicate with the app, as illustrated in Design Human-Machine Interface Logic by Using Stateflow Charts.
|this||Access chart data during simulation|
Connect Apps to Charts in Simulink Models
Design an automotive power window system by using local events.
Use string data to define the behavior of a media player.
Implement a fitness tracker by using temporal logic and messages.
Connect Apps to Standalone Charts in MATLAB
Model the logic of a graphical user interface in a standalone Stateflow chart.
Implement a fitness tracker by using multiple standalone charts and a MATLAB app.
Create an analog-triggered data acquisition app by using Stateflow, Data Acquisition Toolbox™, and App Designer.