Configuring code appearance influences code generation:
Reduces potential name collisions for identifiers
Lets you select custom reserved words that the code generator does not use in generated identifiers
Configure how the code generator inserts comments into generated code by modifying parameters on the Code Generation > Comments pane.
Include MATLAB Code as Comments in Generated Code (Embedded Coder)
Correlate code generated for a MATLAB Function block with MATLAB® source code.
For GRT and RSim targets, the code generator automatically constructs identifiers for variables and functions in the generated code.
In identifier generation, a circumstance that would cause generation of two or more identical identifiers is called a name collision.
Use the Maximum identifier length parameter to limit the number of characters in function, type definition, and variable names.
If you use the code generator to produce C or C++ code, your model must not contain keywords that are reserved for internal use.
Specify a set of names that the code generation process should not use.