MATLAB Answers

how to convert matlab code to .exe file?

58 views (last 30 days)
Jeena
Jeena on 16 Feb 2013
Commented: Walter Roberson on 25 Jun 2021
hi...i have a matlab code(.m) which i want to convert to .exe.. i used deploytool to make a package which conatins .exe and MCR installer. but the .exe file created is a matlab application. It is "Application(.exe)"!!!
and it does not work with only MCR but it needs malab installed in the system.
somebody please help me with this.. i want to make a .exe file from matlab code!
  1 Comment
Azzi Abdelmalek
Azzi Abdelmalek on 16 Feb 2013
Have you checked if your .exe file works in your first computer?

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 16 Feb 2013
Please run your app from a console window (Start->cmd, then cd to the folder). Tell us everything in the console window that you see.
  3 Comments
Jeena
Jeena on 17 Feb 2013
thank you sir...i understood the mistake in code!

Sign in to comment.

More Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 16 Feb 2013
No, your .exe application, needs only MCR.
  2 Comments
Image Analyst
Image Analyst on 16 Feb 2013
Try renaming the file so that there are no parentheses in the name.

Sign in to comment.


Youssef  Khmou
Youssef Khmou on 16 Feb 2013
hi,
did you try mcc
doc mcc
  4 Comments
Walter Roberson
Walter Roberson on 25 Jun 2021
For some subsets of MATLAB, you might be able to use https://github.com/ebranlard/matlab2fortran and then compile the resulting fortran.
It probably does not handle any of the toolboxes.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by