Main Content

Performance

Guidelines for improving generated code performance

Blocks

MATLAB FunctionInclude MATLAB code in models that generate embeddable C code

Functions

coder.inlineControl inlining of a specific function in generated code
coder.unrollUnroll for-loop by making a copy of the loop body for each loop iteration
coder.constFold expressions into constants in generated code

Examples and How To

Concepts