MATLAB: Embedded Coder generated .zip file problem

code generationEmbedded Codergenerated .zip fileMATLABsimulinksimulink coder

Hello,
When i generated code with Embedded Coder, generated zip file has a folder named R2018b.
This folder includes 3 folders(extern, rtw and simulink).
Inside these folders, they are some header files.
I noticed that these header files are in the following matlabroots.
MATLABROOT\simulink\include
MATLABROOT\rtw\c\src
MATLABROOT\extern\include
Why these header files are added to the generated zip file? I don't need those header files.
Thanks for help.

Best Answer

The feature to generate a .zip package is in fact using the command 'packngo'. You could investigate that command in more detail. Maybe you should check the answer to this question: https://nl.mathworks.com/matlabcentral/answers/452312-package-generated-code-with-the-minimal-set-of-files-necessary-for-compilation-using-packngo