When you compile MATLAB functions containing MEX-files, ensure that the dependency analyzer can find them. Doing so allows you to avoid many common compilation problems. In particular, note that:
Since the dependency analyzer cannot examine MEX-files, DLLs, or shared libraries
to determine their dependencies, explicitly include all executable files these files
require. To do so, use either the
mcc -a option or the
Files required for your application to run field in the
If you have any doubts that the dependency analyzer can find a MATLAB function
called by a MEX-file, DLL, or shared library, then manually include that function.
To do so, use either the
mcc -a option or the Files
required for your application to run field in the compiler
Not all functions are compatible with the compiler. Check the file
mccExcludedFiles.log after your build completes. This file
lists all functions called from your application that you cannot deploy.