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 日

0 投票

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 月 17 日
編集済み: Vincent Hoong 2016 年 11 月 17 日
Hi Simon, thanks lot for your helpful note. However when I try using the mcc command I've the problem shown in the attachment. Can you give me some directions on how to solve this problem? Thanks in advance. I'd checked on my license also using " license('checkout', 'Compiler')" and it outputs me a 1
Jan
Jan 2016 年 11 月 17 日
@Vincent: I do not find a "-e" flag for mcc. But this topic has been discussed frequently in this forum with a nice solution. Some of the threads have the last answer to install Matlab without online activation and move the created lic file to the right direction. But I do not think, that this makes any difference.
Image Analyst
Image Analyst 2016 年 11 月 17 日
You should not use the -e option if you're not using a GUI. That option suppresses the console window, and if you don't have a console window, though it's not necessary, you won't be able to see any error messages that get produced.
But your main problem is that you haven't bought the compiler.
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2016 年 11 月 17 日

コメント済み:

Jan
2016 年 11 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by