Main Content
Function Replacement
Define code replacement mappings for functions
Use the Code Replacement Tool or programming interface to define code replacement mappings for math, memory, or your own custom functions. Customize the code match and replacement process.
Tools
Code Replacement Tool | Create, modify, and validate content of code replacement libraries |
Code Replacement Viewer | Explore content of code replacement libraries |
Functions
Topics
- 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.