Main Content

Performance

Guidelines for improving generated code performance

Blocks

MATLAB Function IncludeMATLABcode in models that generate embeddable C code

Functions

coder.inline Control inlining of a specific function in generated code
coder.unroll Unrollfor-loop by making a copy of the loop body for each loop iteration
coder.const Fold expressions into constants in generated code

Examples and How To

Concepts