Pattern Wizard
Create decision, loop, and switch patterns in Stateflow
Description
Use the Pattern Wizard to create and manage flow chart patterns in Stateflow® charts and graphical functions. You can use the built-in decision, loop, and switch patterns to create structures that comply with MAB guidelines. You can save custom patterns for reuse, extend existing flow charts with new logic patterns, and convert MATLAB® code into graphical representations. Pattern options include:
If,If-Else,If-Elseif, and other nested decision patternsFor-,While-, andDoWhile-loop patternsSwitch patterns with up to four cases
Custom patterns
Patterns that you define in a MATLAB program file
Open the Pattern Wizard
To open the Pattern Wizard, open a Stateflow chart. In the Modeling tab, select Pattern.

Examples
Limitations
You can only convert MATLAB code to flow charts in standalone Stateflow charts.
Version History
Introduced in R2008b



