MATLAB: Fully standalone executable file

MATLAB Compilerstandalone application

Hi @ all,
I'm not an expert in compiler. I would like to ask if someone tried to create, starting from matlab m file, a complete standalone executable file.
I already read a lot of technical documentation and a saw different webinar about the Matlab Compiler.
I tried to following step by step the webinar's instruction :
  • Create the project (with the main file like a function)
  • Build the project including the MCR
  • Packing the project
But when i run the exe file in a PC without matlab and without the MCR the program doesnt works.
Where I wrong?
Another questions :
Exists some tecnhical documentation with a list and the explication of the whole files created after the project build?
What is the different between 'standalone application' and 'windows standalone application' ?
If i use the windows standalone application if possible use the exe file with differnt operating system (such as Windows vista and/or windows 7)?
Is it possible creates a unique exe file working in both 32 and 64 bit operating system ?
Thanks in advance
M1Tc4

Best Answer

You need to have Matlab runtime installed in the computer where you plan to run your project. Otherwise it will not work. You do not need to have Matlab installed however.
Technical documentation: I don't know.
Standalone vs windows standalone: windows standalone might need some system dll's to run. A vanilla standalone shouldn't.
32 bit vs 64 bit: a 32 bit app should run on a 64 bit system. A 64 bit app won't work in a 32 bit system. So it is possible if you use the 32 bit version of Matlab but impossible if you use the 64 bit one.