I am trying to use a custom CGT (Code Generation Template) in MATLAB, however, MATLAB does not seem to have it in the path.
I have created a directory "sert" in "matlabroot\rtw\c\" and placed a copy of "matlabroot\toolbox\rtw\targets\ecoder\ert_code_template.cgt" there with a name "sert_code_template.cgt".
Then I ran "addpath" command as follows:
addpath([matlabroot '\rtw\c\sert'])
However, when I run "which sert_code_template", it does not find this file. What is the issue here?
Best Answer