User-defined Matalab function call from Java fails
1 次查看(过去 30 天)
显示 更早的评论
When I call the attached function "optimal_sizing_ga.m" from Java it does not work.
For example, the following call fails: optimal_sizing_ga(200,3,75,8,0.3)
This function works in Matlab but fails when called from Java.
Any help is appreciated.
0 个评论
回答(1 个)
Hari Krishna Ravuri
2020-1-6
编辑:Hari Krishna Ravuri
2020-1-6
I understand that, you want to execute user defined MATLAB functions in Java. This can be done by using MatlabEngine feval and fevalAsync methods. Please refer https://in.mathworks.com/help/matlab/matlab_external/execute-matlab-functions-from-java.html to know about executing MATLAB Functions from Java. Please refer https://in.mathworks.com/matlabcentral/answers/355278-calling-user-defined-script-from-java to know about executing a MATLAB Script from Java.
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call MATLAB from Java 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!