MATLAB: How to include a MAT-file in a MATLAB Compiler generated application

applicationdeployeddistributedistributedfileincludeMATLAB Compiler

My MAT-file contains data that my deployed application will need. I would like to know how to include this file.

Best Answer

This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, read below for any workarounds:
When you issue your MCC command, be sure to use the -a flag to include your file. For more details, type the command "doc mcc" at the MATLAB prompt.