Skip to Main Content Skip to Search
Product Documentation

rtwrebuild - Rebuild generated code

Syntax

rtwrebuild()
rtwrebuild('model')
rtwrebuild('path')

Description

rtwrebuild() recompiles files you modified by invoking the makefile generated during the previous build. If you omit the input arguments, the current working folder is the build folder of the model.

Use rtwrebuild('model') if your current working folder is one level above the build folder of the model (pwd when you initiated the Simulink Coder build).

Use rtwrebuild('path') to specify the path to the build folder of the model.

If your model includes submodels, the Simulink Coder software builds the submodels recursively before rebuilding the top model.

Input Arguments

modelString specifying the model name.
pathString specifying the fully qualified path to the build folder for the model.

Examples

Rebuild the rtwdemo_f14 model:

rtwrebuild('rtwdemo_f14')

Rebuild the model in a specified path:

rtwrebuild(fullfile(matlabroot,'rtwdemo_f14'))

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS