coder.unroll
coder · scripts/+coder/unroll.m
UNROLL MATLAB Coder compatibility: unroll a FOR-loop in generated code
for i = CODER.UNROLL(RANGE) fully unrolls the loop.
CODER.UNROLL() fully unrolls the loop
for i = RANGE
for i = CODER.UNROLL(RANGE, FLAG) unrolls the loop if FLAG is true.
FLAG is evaluated at code generation time.
CODER.UNROLL(FLAG) unrolls the loop if FLAG is true
for i = RANGE
This is a code generation function. It has no effect in MATLAB /
Nexus beyond returning RANGE (when used as a for-loop index
expression) so ordinary interpreted execution matches MATLAB R2026a.
See also coder.inline, coder.varsize.