rtwrebuild
Rebuild generated code from model
Description
rtwrebuild()
assumes that the current working folder is
the build folder of the model (not the model location) and calls
codebuild
. If the current working folder is not the build
folder, the function exits with an error.
rtwrebuild
calls codebuild
to recompile
files you modified since that build. Operation of this function depends on the
current working folder, not the current loaded model. If your model includes
referenced models, codebuild
recompiles code for all models
in the hierarchy.
In Parallel Computing Toolbox™ commands, for example, a parfor
or spmd
loop, do not invoke rtwbuild
, rtwrebuild
, or
slbuild
commands that build models that are configured for parallel
builds. For information about parallel builds of referenced models, see Reduce Build Time for Referenced Models by Using Parallel Builds.
Examples
Input Arguments
Version History
Introduced in R2009a