How do I convert my .m file into a .exe file?

조회 수: 178 (최근 30일)
Cordelle
Cordelle 2013년 8월 6일
댓글: Walter Roberson 2023년 9월 27일
I do NOT have license compiler.
I have some .m file i need some one to test on there computer and i am not sure if they have matlab so i would like to make the .m file into a .exe file.
  댓글 수: 3
Steven Lord
Steven Lord 2023년 9월 27일
Rather than emailing posters directly, please post here what you've tried and why the solutions provided in this Answers post don't meet your needs. That way everyone can contribute if they have suggestions.
Have you tried any or all of the three solutions @Shashank Prasanna suggested: MATLAB Coder, MATLAB Compiler, and the MATLAB Engine API? If so what requirements of your application did they not satisfy?
If you were trying to provide your code to users who didn't have MATLAB installed so they could run it, have you tried MATLAB Online as I suggested? If so what requirements of your use case did it not satisfy?
Walter Roberson
Walter Roberson 2023년 9월 27일
I have seen people express the sentiment that as far as they are concerned, they will not consider this problem "solved well" until Mathworks start paying people to use MATLAB Compiler (that even if the software were free, that they consider Mathworks to have more or less stolen from people by asking that the software be paid for.)

댓글을 달려면 로그인하십시오.

답변 (3개)

Shashank Prasanna
Shashank Prasanna 2013년 8월 6일
Your options are limited to the following and each have their own limitations:
1) MATLAB Compiler which will let you deploy your program as a stand alone executable that can be shared with anyone.
2) MATLAB Code which supports a subset of function for C code generation that can then be complied into an Exe
3) The Engine API which will let you call MATLAB function from within a C program executable.

Steven Lord
Steven Lord 2023년 9월 26일
Another alternative, one that didn't exist when this question was originally asked ten years ago, is to have your users use MATLAB Online to run your code.

per isakson
per isakson 2013년 8월 6일
  댓글 수: 3
Cordelle
Cordelle 2013년 8월 6일
I dont have a license compiler, is there away to make the file into a .exe file another way
per isakson
per isakson 2013년 8월 6일
편집: per isakson 2013년 8월 6일
AFAIK: There is no free way to make a stand-alone, which runs without Matlab.
Your m-file might run on Octave, which is free.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by