MCC-- make an executable using matlab in linux

I m using matlab 2009 provided by department. It is license version.
I don't have mcc command in my installation. How Can I do it ? I have one m file and I want to make it executible ? Is there any other way ? Can anyone suggest the easiest way ?

 Accepted Answer

You need the MATLAB Compiler version for your release.
If you are in an academic institution and that institution has the compiler, then there are some circumstances under which the institution could compile the file for you. The license restrictions are a bit fuzzy in an academic environment. The interpretation that I have come up with is that in an academic environment, if the compiling was for the internal benefit of the institution rather than for the benefit of the student, then having the department compile would be acceptable. For example if the work you were doing was as a "summer student" helping a professor, then compiling would probably be allowed, but if the work you were doing was an assignment or project needed for grade or graduation, then that would be considered to be for your benefit and the department would not be allowed to compile under the license terms (according to my interpretation of the license.)
The MATLAB Compiler is the only product that can compile .m files to .exe. There is, however, also a MATLAB Coder product that was released around R2010b or so, that can convert very limited subsets of MATLAB into C code.

3 Comments

Thanks Walter and sorry for very late reply.
Actually I m linux user and I m interested to generate the executible file which I can distribute to other. though I m student but this distribution is for learning as I don't want to expose the solution code for limited time period.
Aravin: If your only requirement is that your MATLAB code not be visible to the others, then you may simply want to pcode your functions.
Thanks Goving,
I hope it will solve my problem.

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!