MATLAB: How to compile a matlab program

compilationmatlab free environment

Hello,
I have done a matlab program. Now I want to use it in a matlab free environment (Independent of Matlab)in any computer. Is there anybody who can help me in doing compilation?
Thanks in advance

Best Answer

You need the Matlab Compiler Toolkit . Information about how to use it is available here
Please note that the Matlab Compiler can only produce executables suitable for the platform (Windows, OS-X, Linux) that the compiler was used on, not on "any computer".
Also please note that running the executable requires installing MCR (Matlab Component Runtime) on the system that is to run the executable, and that you as creater of the executable would be responsible for providing MCR to each of the users -- MCR is not available for downloading from Mathworks. You would also be responsible for ensuring that only people authorized to use your executable get MCR from you: it is not allowed to make MCR available outside your organization without access controls to prevent the public from downloading MCR.