Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Introduced in R2010a

Was this topic helpful?