MATLAB Report Generator    
While Loop

Component

While Loop

Category

Logical and Flow

Description

The While Loop component iteratively executes its subcomponents while the string specified in the attributes page is true. You can limit the number of repetitions to prevent infinite loops. The While Loop component must have at least one subcomponent; the purpose of this component is to run its subcomponents several times. If it does not have any subcomponents, this component does not add anything to the report.

Attributes

This is the While Loop attribute page.

while
Enter the string to be evaluated in this field. This string should be a valid MATLAB expression that evaluates to be a 1 or 0 (true or false) in the workspace. For example, if a=1, b=2, and c=3 in the MATLAB workspace, and you enter the following at the command line
Limit number of loops to
Use this option to prevent infinite loops. Use the left and right arrows to increase or decrease the number of loops.

Insert anything into report?

Yes, as long as it has subcomponents.

Filename

clo_while


  <if> Then MATLAB Components