Main Content

Code Comments

Configure how code generator inserts comments into generated code

To improve the readability and traceability of the generated code, you can specify certain model configuration parameters to insert comments in the generated code. The code generator then includes text for model parameters, block names, signal names, states, functions, and Stateflow object names in the generated code comments. To trace the generated code to the element in the Simulink model, click the hyperlinks in the comments.

Topics