Main Content

Retain .rtw file

Retain generated model.rtw file

Model Configuration Pane: Code Generation

Description

The Retain .rtw file parameter instructs the code generator to retain the generated model.rtw file in the current build folder at the end of the build process. Retaining the model.rtw file is useful if you need to check the file content after making changes to a system target file.

Settings

off (default) | on
On

Retains the model.rtw file in the current build folder.

Off

Deletes the model.rtw from the build folder at the end of the build process.

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: RetainRTWFile
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2006a