MATLAB® source code as comments
Inclusion of MATLAB source code as comments in generated code
Description
App Configuration Pane: Code Appearance
Configuration Objects: coder.MexCodeConfig
| coder.CodeConfig
| coder.EmbeddedCodeConfig
Include MATLAB source code as comments in the generated code and precede each line of code with a traceability tag. The traceability tag helps you to locate the corresponding MATLAB source code.
If you install the Embedded Coder® product, the traceability tag links to the source code in the code generation report.
The code generator also includes the MATLAB function signature in the function banner.
Dependencies
To enable this parameter, select the Include comments check box.
Settings
- Off
The code generator does not insert MATLAB source code as comments in the generated code. The code generator does not include the MATLAB function signature in the function banner. This value is the default value.
- On
The code generator inserts MATLAB source code as comments in the generated code with a traceability tag immediately preceding each line of source code. The code generator also includes the MATLAB function signature in the function banner.
Programmatic Use
Property:
MATLABSourceComments |
Values: false |
true |
Default: false |
Version History
Introduced in R2011a