Additional code
Include custom code in the generated model source file
Model Configuration Pane: Code Generation / Custom Code
Description
Specify custom code to include near the top of the generated model source file.
Settings
''
(default) | stringThe code generator places code near the top of the generated
or model
.c
file, outside of any function.model
.cpp
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: CustomSourceCode |
Type: character vector |
Value: C code |
Default: '' |
Version History
Introduced before R2006a