Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Why I got the following error when I run the ".exe" file compiled by matlab 2012b?
1 回表示 (過去 30 日間)
古いコメントを表示
My code is a very simple one, as shown below:
function C = MyAdd(A,B)
C = A+B;
end
I compiled it to .Exe file, then run the Exe file. And I got the following error:
warning: Initializing Handle Graphics failed in matlabrc.
This indicates a potentially serious problem in your matlab setup.
which should be resolved as soon as possible. Error detected was:
MATLAB: undefinedVarOrClass
Undefined variable "graphics" or class "graphics,internal.initializeMATLABRoot".
Warning:failed to add default profiler filters.
>In matlabrc at 163
Undefined function 'javaaddpath' for input arguments of type 'cell'.
Undefined function 'javaaddpath' for input arguments of type 'cell'.
Besides, the dialog of the error is always a flash.
What should I do to solve this problem???
0 件のコメント
回答 (1 件)
Romain
2014 年 5 月 22 日
I'm not sure that you can create an *.exe file with only a function. I think that you have to compile a script.
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!