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!