MATLAB: Are the preference files included in the stand-alone application created with MATLAB Compiler 4.9 (R2008b)

MATLAB Compilerstandalone

If I look in the cache folder that my compiled application creates, I can see that the .matlab folder contains my preference files with my last development activities in plain text. The files are: cwdhistory.m, history.m, matlab.prf, MATLAB_Editor_State.xml, etc.
How can I avoid the inclusion of these files in the stand-alone application?

Best Answer

The stand-alone does not include your preference files. You can see the preference files in the cache folder because you are running the stand-alone in your development environment. At runtime, the stand-alone determines those preferences from a local MATLAB installation and copies them to the cache folder for it's own use.
If you run your stand-alone application on a machine without a MATLAB installation, you will see that the cache folder does not contain your preference files.