Main Content

Model-to-code

Enable code highlighting in the code generation report when you click on Simulink blocks, Stateflow objects, and MATLAB functions

Model Configuration Pane: Code Generation / Report

Description

Link Simulink® blocks, Stateflow® objects, and MATLAB® functions in a model diagram to corresponding code segments in a generated HTML report so that the generated code for a block can be highlighted on request.

Dependencies

Settings

off (default) | on
On

Includes model-to-code highlighting support in the code generation report. To highlight the generated code for a Simulink block, Stateflow object, or MATLAB script in the code generation report, right-click the item and select C/C++ Code > Navigate to C/C++ Code.

Off

Omits model-to-code highlighting support from the generated report.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

Parameter: GenerateTraceInfo
Type: Boolean
Value: on | off
Default: off

Version History

Introduced in R2007b