Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

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 there are no inputs, your current working directory is the build directory of the model.

Use rtwrebuild('model') if your current working directory is one level above the build directory of the model(pwd when you initiated the Real-Time Workshop build).

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

If your model includes submodels, the Real-Time Workshop software builds the submodels recursively before rebuilding the top model.

Inputs

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

Examples

Rebuild the rtwdemo_f14 model:

rtwrebuild('rtwdemo_f14')

Rebuild the model in a specified path:

rtwrebuild(fullfile(matlabroot,'rtwdemo_f14'))

See Also

Rebuilding a Model — Describes rebuilding the generated code from the Model Explorer.

  


Related Products & Applications

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

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