Initialize code
Include custom code in the generated model initialize function
Model Configuration Pane: Code Generation / Custom Code
Description
Specify custom code to include in the generated model initialize function.
Settings
'' (default) | stringThe code generator places code inside the model's initialize function in the or model.c file.model.cpp
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: CustomInitializer |
| Type: character vector |
| Value: C code |
Default: '' |
Version History
Introduced before R2006a