Skip to content

coder.inline

coder · scripts/+coder/inline.m

INLINE  MATLAB Coder compatibility: control inlining of the current function

  CODER.INLINE('always') forces inlining of the current function in the
  generated code.

  CODER.INLINE('never') prevents inlining of the current function in the
  generated code.

  CODER.INLINE('default') uses internal heuristics to determine whether
  or not to inline the function.

  This is a code generation function.  It has no effect in MATLAB /
  Nexus.  Argument validation matches MATLAB R2026a: exactly one
  input is required; its value is ignored at run time.

  See also coder.unroll, coder.varsize.