MATLAB Answers


How to compile a matlab program?


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


Log in to comment.

2 Answers

Answer by Walter Roberson
on 6 Mar 2011
 Accepted 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.

  1 Comment

Log in to comment.

Answer by Paulo Silva
on 6 Mar 2011


  1 Comment

Log in to comment.

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!