MATLAB: Is it possible to insert the program before/after building the model

Embedded Coder

Please let me know how to insert my program before/after building the model.

Best Answer

Editting <STF>_make_rtw_hook.m is enable to insert the program into the build process.
<STF> is a kind of System Target File name.
For example, ert_make_rtw_hook.m makes the program insert into the build process in ert.tlc.
The following command is to edit ert_make_rtw_hook.m
edit ert_make_rtw_hook
You can see the followins discription in ert_make_rtw_hook.m.
switch hookMethod
...
case 'entry'
***
'entry' is executed before building the model.
Please check the following link if you want to know about STF_make_rtw_hook.m