Convert m to exe (Without GUI)

조회 수: 4 (최근 30일)
Vincent Hoong
Vincent Hoong 2016년 11월 17일
댓글: Jan 2016년 11월 21일
Hello fellow programmers,
I'm facing an issue here where I do not know how to convert m file to exe file in R2014b. I'd surfed through internet but all I saw is using matlab compiler where a GUI is required for the conversion Is there any solution for my problem? Hope someone can guide me on this thanks in advance!
  댓글 수: 1
Adam
Adam 2016년 11월 17일
Do you mean your program has no GUI or you want to compile it without using the Matlab Compiler GUI?
In the former case there is no restriction on compiled programs that they have to have a GUI. They have to be a function, you can't compile a script into an exe, but that function does not have to be a GUI nor contain a GUI anywhere in its calls.

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

답변 (1개)

Jan
Jan 2016년 11월 17일
What is the problem with using the compiler GUI? You can compile without the GUI using the mcc command directly, but it is harder to get the right command line arguments.
  댓글 수: 5
Vincent Hoong
Vincent Hoong 2016년 11월 18일
Thanks Simon n ImageAnalyst for your replies. But how can I identify from MATLAB whether I'd already bought a compiler or not? I thought by using license('checkout', 'Compiler') I can already know whether I'd my license by just ensuring the output is 1
Jan
Jan 2016년 11월 21일
I also expect that the license() command should determine if a license is installed. If this is not the case, contact Mathworks and ask for a solution. At least this should be an enhancement request.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by