函数替换
定义函数的代码替换映射
使用代码替换工具或编程接口,为数学函数、内存函数或您自己的自定义函数定义代码替换映射。自定义代码匹配和替换过程。
工具
函数
主题
- Math Function Code Replacement
Develop a code replacement library to replace math functions.
- Memory Function Code Replacement
Define a code replacement mapping for a memory function.
- Specify In-Place Code Replacement
In a code replacement, use a single buffer to store function input and output data.
- Replace MATLAB Functions with Custom Code by Using the coder.replace Function
Replace a MATLAB function with a function in generated C or C++ code by using the
coder.replace
function. - Replace coder.ceval Calls to External Functions
Replace a function that you specify in a call to the
coder.ceval
function.