Hi Varun,
Looks like you are getting “disable functions” auto generated while using embedded coder something like this “xyz_Disable” and you are using MATLAB version R2012b.
The feature “Remove disable function” got introduced in MATLAB version R2016b.
Here are the steps you can follow to enable “remove disable function” in MATLAB version R2016b or later:
- Set Configuration Parameters > Code Generation > System target file parameter to an ERT-based system target file, such as “ert.tlc”.
- Go to Configuration Parameters > Code Generation > Interface and check the option “remove disable function”.
Hope this helps.