Source files
R2026bCompile and link additional source files with the generated code
Model Configuration Pane: Code Generation / Custom Code
Description
Specify a list of additional source files to compile and link with the generated code.
Settings
'' (default) | stringEnter a space-separated list of source files to compile and link with the generated code.
Tips
You can specify just the file name if the file is in the current MATLAB® folder or in one of the include folders.
To use the same custom code settings as those used for simulation, select Use the same custom code settings as Simulation Target. For more information, see Integrate External Code by Using Model Configuration Parameters.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: CustomSource |
| Type: character vector |
| Value: file name |
Default: '' |
Limitation
This parameter does not support Windows® file names that contain embedded spaces.
Version History
Introduced before R2006a