How to create a .m file to exe file, so that exe file ca n be run in another computer in which no matlab is installed?

 Accepted Answer

You would need MATLAB Compiler or MATLAB Coder.
Note: MATLAB Compiler and MATLAB Coder are not available for Student Version licenses, only for Academic and Professional / Commercial licenses.

5 Comments

I have matlab r2010a which is for commercial use how to write a code to get exe file
You will need the MATLAB Compiler product, which is on the order of $US 5500.
There are some things that are not supported by MATLAB Compiler, but most of what is supported does not require you to code any differently, just to use the Compiler product to build the executable.
One of the confusing differences is that if you click on the icon for the generated .exe then the directory it starts running in will be a temporary directory that it extracts files into out of the .exe file. If you need static resource files (images, .mat files) then have a look at ctfroot()
How do I get compiler for r2010a ?
Using compiler how can i build the executable file ?
You have to buy from a Mathworks. It comes to INR 300000 based on an estimate I got. They will require a valid MATLAB license to provide you with a quote. Once you install matlab compiler[MCR], you can do mcc - filename.m to create an executable for the filename.m file.
To buy MATLAB Compiler for R2010a, you will need to either buy a current MATLAB or back-pay your software support to cover from whatever you missed to the present. Then, when you have that, you will be able to download past releases of the software using your MATLAB Central account.

Sign in to comment.

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!