Rebuild generated code from model
rtwrebuild()
assumes that the current working folder is
the build folder of the model (not the model location) and invokes the makefile
in the build folder. If the current working folder is not the build folder, the
function exits with an error.
rtwrebuild
invokes the makefile generated during the
previous build 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, rtwrebuild
invokes the makefile for referenced model code recursively before recompiling
the top model.
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.