主要内容

Terminate code

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

Model Configuration Pane: Simulation Target

Description

The Terminate code parameter specifies C/C++ code to execute at the end of simulation.

Settings

none (default)

Tips

  • Use this code to invoke functions that free memory allocated by the custom code or to perform other cleanup tasks.

Recommended Settings

ApplicationSetting
Debugging

No recommendation

Traceability

No recommendation

Efficiency

No recommendation

Safety precaution

No recommendation

Programmatic Use

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

Version History

Introduced in R2020b