Contents

db_0135: Flow chart patterns for loop constructs

ID: Title

db_0135: Flow chart patterns for loop constructs

Priority

Recommended

Scope

MAAB

MATLAB Versions

All

Description

Use the following patterns to create Loops within Stateflow® flow charts:

Equivalent FunctionalityFlow Chart Pattern

for loop

for (index=0;
index<number_of_loops;
index++) 
{     
action; 
} 

while loop

while (condition) 
{      
action; 
} 

do while loop

do 
{      
action;  
} 
while (condition); 

Rationale

  • Readability

Last Changed

V1.0

Model Advisor Check

Not applicable

Was this topic helpful?