Main Content

Source file

Description

Specify custom code to include near the top of the generated model source file.

Category: Code Generation > Custom Code

Settings

Default:''

The code generator places code near the top of the generated model.c or model.cpp file, outside of any function.

Command-Line Information

Parameter: CustomSourceCode
Type: character vector
Value: C code
Default: ''

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics