Reserved names
Avoid name conflicts with custom code
Model Configuration Pane: Code Generation / Identifiers
Description
Enter the names of variables or functions in the generated code that match the names of variables or functions specified in custom code.
Settings
{}
(default) | arrayThis action changes the names of variables or functions in the generated code to avoid name conflicts with identifiers in custom code. Reserved names must be shorter than 256 characters.
Tips
Do not enter code generator keywords since these names cannot be changed in the generated code. For a list of keywords to avoid, see Reserved Keywords.
Start each reserved name with a letter or an underscore to prevent error messages.
Each reserved name must contain only letters, numbers, or underscores.
Separate the reserved names using commas or spaces.
You can also specify reserved names by using the command line:
config_param_object.set_param('ReservedNameArray', {'abc','xyz'})
where
config_param_object
is the object handle to the model settings in the Configuration Parameters dialog box.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: ReservedNameArray |
Type: cell array of character vectors or string array |
Value: reserved names shorter than 256 characters |
Default: {} |
Version History
Introduced in R2008b