Funktionsersatz
Definieren von Codeersetzungs-Mappings für Funktionen
Verwenden Sie das Code Replacement Tool oder die Programmierungsschnittstelle, um Codeersetzungs-Mappings für Mathematik- oder Speicherfunktionen oder Ihre eigenen benutzerdefinierten Funktionen zu definieren. Passen Sie den Suchen-und-Ersetzen-Prozess für Code an.
Tools
| Code Replacement Tool | Create, modify, and validate content of code replacement libraries |
| Code Replacement Viewer | Explore content of code replacement libraries |
Funktionen
Themen
- 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.
- Root Mean Square Code Replacement
Replace the code for the
rmsfunction. - 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.replacefunction. - Replace coder.ceval Calls to External Functions
Replace a function that you specify in a call to the
coder.cevalfunction.