addFunctionReplacement
Class: coder.SingleConfig
Namespace: coder
Replace double-precision function with single-precision function during single-precision conversion
Syntax
addFunctionReplacement(doubleFn,singleFn)
Description
addFunctionReplacement(
specifies
a function replacement in a doubleFn
,singleFn
)coder.SingleConfig
object.
During double-precision to single-precision conversion, the conversion
process replaces the specified double-precision function with the
specified single-precision function. The single-precision function
must be in the same folder as the double-precision function or on
the MATLAB® path. It is a best practice to provide unique names
to local functions that a replacement function calls. If a replacement
function calls a local function, do not give that local function the
same name as a local function in a different replacement function
file.
Input Arguments
Examples
Version History
Introduced in R2015b