Main Content

Include comments

Include comments in generated code

Model Configuration Pane: Code Generation / Comments

Description

Specify which comments are in generated files.

Settings

on (default) | off
On

Places comments in the generated files based on the selections in the Auto generated comments pane.

Off

Omits comments from the generated files.

Note

This parameter does not apply to copyright notice comments in the generated code.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

Parameter: GenerateComments
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Version History

Introduced before R2006a