Main Content
Code templates: Source file (*.c) template
Source code file template
Model Configuration Pane: Code Generation / Templates
Description
Specify the code generation template (CGT) file to use when generating a source code file.
Settings
ert_code_template.cgt
(default) | CGT fileDefault: ert_code_template.cgt
You can use a CGT file to define the top-level organization and formatting of generated source code files (.c
or .cpp
).
Note
The CGT file must be located on the MATLAB® path.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: ERTSrcFileBannerTemplate |
Type: character vector |
Value: valid CGT file |
Default: 'ert_code_template.cgt' |
Version History
Introduced before R2006a