Main Content

Constant inputs

Constant input checking mode

Description

App Configuration Pane: Advanced

Configuration Objects: coder.MexCodeConfig

Constant input checking mode. See Constant Input Checking in MEX Functions.

Settings

Check values at run time

This value is the default value.

When you call the MEX function, it checks that the value you provide for a constant input argument is the value specified at code generation time.

You can call the MEX function and the original MATLAB® function with the same arguments. Therefore, you can use the same test file for both functions.

Checking the values can slow down execution of the MEX function.

Ignore input value

When you call the MEX function, it ignores the value that you provide for a constant input argument. It uses the value specified at code generation time.

You can use the same test file without the overhead of checking the constant argument values.

Remove from MEX signature

The code generator removes constant input arguments from the MEX function signature. When you call the MEX function, you do not provide a value for a constant input argument.

This option provides backward compatibility.

Programmatic Use

Property: ConstantInputs
Values: 'CheckValues' | 'IgnoreValues' | 'Remove'
Default: 'CheckValues'

Version History

Introduced in R2013a