| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
Follow these best practices to create efficient, accurate flow graphs:
Use only one default transition
Provide only one terminating junction
Converge all transition paths to the terminating junction
Provide an unconditional transition from every junction except
the terminating junction
Use condition actions to process updates, not transition actions
The following example illustrates these best practices:

![]() | Drawing and Customizing Flow Graphs By Hand | Enhancing Readability of Generated Code for Flow Graphs | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |