Main Content
MATLAB user comments
Include MATLAB user comments in generated code
Model Configuration Pane: Code Generation / Comments
Description
Specify whether to include MATLAB® user comments including both function description comments and other user comments from MATLAB code as comments in the generated code.
Dependencies
This parameter only appears for ERT-based targets.
This parameter requires an Embedded Coder® license when generating code.
Include comments enables this parameter.
Settings
off
(default) | on
- On
Inserts MATLAB user comments as comments.
- Off
Suppresses comments.
Recommended Settings
Application | Setting |
---|---|
Debugging | On |
Traceability | On |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: MATLABFcnDesc |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2010b