I have created a custom hook file (STF_make_rtw_hook) that I only want to run if called from a script.
I want to pass a custom input argument in 'rtwbuild' that when set to true would run the hook file.
For example, if I have a custom hook file like the one below:
>> if UseMyFileDiffTool>> runDiffTool()>> end
Then, I would like to call 'rtwbuild' with a custom input argument like this:
>> rtwbuild(model,'UseMyFileDiffTool',true)
Having that input argument set to true, it would run the hook file from above. How can I implement this?
Best Answer