This is not a bug in EGCITEST or DEPLOYTOOL.
The dependency analysis that the MATLAB Compiler carries out at compile time is unable to pick up the dependency on the data file since it’s not MATLAB code. Any data files that are referenced from code that is being deployed need to be added explicitly to the project.
To do this, add the .mat file to your DEPLOYTOOL project. Drag $MATLABROOT/toolbox/econ/econ/Data_EGCITest.mat into the project where it says “add files/directories” in the Build tab of DEPLOYTOOL. If compilation is being done on the command line using the MCC command, this dependency would be resolved using the -a option to MCC:
-a fullfile(matlabroot, ’toolbox’, ’econ’, ’econ’, ’Data_EGCITest.mat’)
o Dave Lane (MathWorks Quality Engineering)
o Bill Mueller (Econometrics Toolbox)