MATLAB Report Generator | ![]() ![]() |
Logical and Flow components execute conditionally, enabling you to decide when a subcomponent will execute or how many times a subcomponent will execute.
Logical and Flow components have the following parent/child relationships.
For Loop. This component iteratively runs its child components. The For Loop component must have at least one child. The purpose of this component is to run its children several times. If it does not have any children, then this component does not add anything to the report.
While Loop. This component loops while a workspace expression is true. This component runs its subcomponents until its conditional string is true. The number of repetitions can be limited to prevent infinite loops. Similar to the For Loop component, the While Loop component must have at least one child. If it does not have any children, then this component does not add anything to the report.
The "If" Family. There are three possible ways in which you can use the "If" family components.
![]() | Handle Graphics Parameter | <if> Else | ![]() |