MATLAB: Matlab .exe files from .m file

mcrstand alone app

i have created an .exe file from .m file. in target PC i have installed MCR. but some functions cannot be done like 'edge' functions. it say the following error :
'???Invalid MEX-file ' c:\…\private\imfilter_mex.mexw32' : The specified module could not be found.
But 'imfilter_mex.mexw32' exist in that location. so why the program cannot fined it??

Best Answer

Some DLL needed by that mexw32 is missing. Download Dependency Walker from the internet and use it to figure out what is missing (e.g., the Visual Studio runtime)