Main Content

Compile-time recursion limit

Maximum number of function specializations for compile-time recursion

Description

App Configuration Pane: Advanced

Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig

Maximum number of function specializations for compile-time recursion. To disallow recursion in the MATLAB® code, set Compile-time recursion limit to 0. The default compile-time recursion limit is large enough for most recursive functions that require this type of recursion. If code generation fails because of the compile-time recursion limit, and you want compile-time recursion, try to increase the limit. Alternatively, change your MATLAB code so that the code generator uses run-time recursion.

Settings

50 | positive integer

Maximum number of function specializations for compile-time recursion, specified as a positive integer. The default value for this setting is 50.

Programmatic Use

Property: CompileTimeRecursionLimit
Values: 50 | positive integer
Default: 50

Version History

Introduced in R2016b