Products & Services Solutions Academia Support User Community Company

Learn more about Stateflow   

What Is a Flow Graph?

A flow graph is a graphical construct that models logic patterns by using connective junctions and transitions. The junctions provide decision branches between alternate transition paths. You can use flow graphs to represent decision and iterative loop logic.

Here is an example of a flow graph that models simple if-else logic:

This flow graph models the following code:

if (u > 0)
{
   y = 1;
}
else
{
   y = 0;
}
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS