coder.loop.reverse
R2026bDescription
coder.loop.reverse( directs the code
generator to reverse the loop iteration order for the loopID)for-loop with the
index name loopID in the generated code.
Use this directive when the loop iterator has a known upper bound. The loop direction must not affect correctness, and there must be no forward or backward dependencies. For more information about loop optimizations, see Optimize Loops in Generated Code.
Examples
Input Arguments
Tips
To view potential issues that the code generator encounters when applying the
coder.loop.reversedirective, review the Code Insights section of the code generation report. See Code Generation Reports.
Extended Capabilities
Version History
Introduced in R2023a