MATLAB: Deploying Standalone Executable with No MCR

MATLAB Compilermcr

Hello. I have a simple M file which creates a GUI, let the user chose a text file, apply a simple manipulation on the text file and then save the result.
I want to create a standalone application from this file. I read the help on the subject which requires installation of the MCR on the target machine. The MCR by itself is more than a 300MB file.
Yet I saw appliactions, such as IMATEST http://www.imatest.com/, which uses MATLAB yet requires nothing from the target machine but the deployed executable.
How could that be done? How can I create a completely independent application?
Thank You.

Best Answer

As you have already heard, the MCR is absolutely required to deploy executables generated using MATLAB Compiler. According to the imatest instructions, they have two types of MATLAB-related files:
  1. P-coded (ie. .m files encrypted with the .p extension) which can be invoked directly from MATLAB.
  2. DLL versions of MATLAB code which do need the MCR ("Imatest IT/DLL also comes with the Matlab Compiler Runtime Libraries. More information can be found at the MathWorks website or below.")
However, if you really do want to generate a standalone executable from your MATLAB code without the use of the MCR, please consider using MATLAB Coder. This product generates C/C++ code from MATLAB code, but only supports a limited subset of the MATLAB language for code generation.