Keep extrinsic calls
Extrinsic function call support
Description
App Configuration Pane: Speed
Configuration Objects: coder.MexCodeConfig
Extrinsic function call support.
The
value of ExtrinsicCalls
affects
how a MEX function generates random numbers for rand,
randi
, and randn
. If
ExtrinsicCalls
is true
, the MEX function uses
the MATLAB® global random number stream to generate random numbers. Otherwise, the MEX
function uses a self-contained random number generator.
See Use MATLAB Engine to Execute a Function Call in Generated Code.
Settings
- On
This value is the default value.
For an extrinsic function, the code generator produces a call to a MATLAB function. The code generator does not generate the internal code for the function.
- Off
The code generator ignores an extrinsic function. It does not generate code for the call to the MATLAB function. If the extrinsic function affects the output of the MATLAB function, the code generator issues a warning.
If you set
ExtrinsicCalls
tofalse
, the generated MEX function cannot display run-time messages fromerror
orassert
statements in your MATLAB code. The MEX function reports that it cannot display the error message. To see the error message, setExtrinsicCalls
totrue
and generate the MEX function again.
Programmatic Use
Property:
ExtrinsicCalls |
Values: true |
false |
Default: true |
Version History
Introduced in R2011a