coder.loop.Control Class
R2026bNamespace: coder.loop
Description
Use instances of the coder.loop.Control class to optimize MATLAB®
for-loops in the generated code. See Optimize Loops in Generated Code.
Creation
Description
creates a
loop control object with an empty transformSchedule property. loopSchedule = coder.loop.Control
Use the methods of the coder.loop.Control class to add loop
optimization directives to the loop control object. Provide the loop index name as input
to each method.
Properties
Methods
Examples
Tips
Use a
coder.loop.Controlobject to combine multiple loop optimization directives in a specific order. See Optimize Loops in Generated Code.
Extended Capabilities
Version History
Introduced in R2023a