MATLAB: How to create and reuse Stateflow® design patterns in the Stateflow® chart using Stateflow®

simulinkstateflow

I would like to use pre-determined Stateflow design patterns into my Stateflow chart. I would also like to create new custom patterns that can be shared and reused by others.

Best Answer

The Stateflow Pattern Wizard has been incorporated into Stateflow 7.2 (R2008b). For previous releases, please see the following.
A wizard that provides examples of creating and reusing Stateflow design patterns can be found at the following link. The example also comes with several pre-determined design patterns:
Note that MathWorks does not guarantee or warrant the use or content of MATLAB Central submissions. Any questions, issues, or complaints should be directed to the contributing author.
For additional information on generating popular C constructs from Simulink blocks, Stateflow charts, and Embedded MATLAB functions, please see the related solutions section.