Run test replacing calls to MATLAB functions with calls to MEX functions
coder.runTest(
runs test
,fcn
)test
replacing
calls to fcn
with calls to the compiled version
of fcn
. test
is the file
name for a MATLAB® function or script that calls the MATLAB function fcn
.
The compiled version of fcn
must be in a MEX
function that has the default name. The default name is the name specified
by fcn
followed by _mex
.
coder.runTest(
replaces
a call to a MATLAB function with a call to the compiled version
of the function when the compiled version of the function is in test
,mexfile
)mexfile
. mexfile
includes
the platform-specific file extension. If mexfile
does
not contain the compiled version of a function, coder.runTest
runs
the original MATLAB function. If you do not want to specify the
individual MATLAB functions to replace, use this syntax.