Contenido principal

Initialize code

C/C++ code to execute at start of simulation

Model Configuration Pane: Simulation Target

Description

The Initialize code parameter specifies C/C++ code to execute at the start of simulation.

Settings

none (default)

Tips

  • Use this code to invoke functions that allocate memory or to perform other initializations of your custom code.

Recommended Settings

ApplicationSetting
Debugging

No recommendation

Traceability

No recommendation

Efficiency

No recommendation

Safety precaution

No recommendation

Programmatic Use

Parameter: SimCustomInitializer
Type: character vector
Value: any C code
Default: none

Version History

Introduced in R2020b