| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
rtwrebuild()
rtwrebuild('model')
rtwrebuild('path')
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.
| model | String specifying the model name. |
| path | String specifying the fully qualified path to the build directory for the model. |
Rebuild the rtwdemo_f14 model:
rtwrebuild('rtwdemo_f14')Rebuild the model in a specified path:
rtwrebuild(fullfile(matlabroot,'rtwdemo_f14'))
Rebuilding a Model — Describes rebuilding the generated code from the Model Explorer.
![]() | RTW.getBuildDir | rtwreport | ![]() |

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 |