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.

For Loop

Iteratively execute child components

Description

This component functions like the MATLAB® for loop, except that instead of executing a statement, it executes its child components. It must have at least one child component to execute.

Loop Type

The loop type can have incremented indices or a vector of indices. For more information on for loops and indices, see for in the MATLAB documentation.

  • Incremented indices: Executes a for loop of the form:

    for varname=x:y:z

    • Start: Corresponds to x in the previous expression.

    • Increment: Corresponds to y in the previous expression.

    • End: Corresponds to z in the previous expression.

  • Vector of Indices: Executes a for loop of the form:

    for varname=[a b c ...]
    Specify appropriate values in the Vector field in the form a b c ...

Workspace Variable

  • Show index value in base workspace: Displays the loop index in the MATLAB workspace while other components execute.

  • Variable name: Allows you to specify the variable name. The default is RPTGEN_LOOP.

  • Remove variable from workspace when done: Removes the loop index from the MATLAB workspace. This option is only available if you select the Show index value in base workspace option.

Insert Anything into Report?

No.

Class

rptgen_lo.clo_for

Was this topic helpful?