Running existing java-based GUI in matlab
조회 수: 4 (최근 30일)
이전 댓글 표시
Dear All, I've a java-based GUI (JFEFF: http://feffproject.org/feffproject-feff.html) contains a few parameters that we optimize with matlab using a genetic algorithm. Currently we have to run both of matlab and JFEFF GUI simultaneously, instead of desired run the java-application inside of matlab. This would allow us to reduce significantly the time associated with each optimisation, improve calculations stability, and enables us to use the PCs in conjunction with optimisation. Does anybody has some suggestion in how to do this? All the best Jacinto
댓글 수: 0
답변 (1개)
Shruti Sapre
2015년 12월 16일
Hi Jacinto,
I understand that wish to call the Java GUI from within MATLAB. You could build the GUI into a jar and call the constructor or a method from within MATLAB. You could also add the Java class files to the MATLAB classpath and call the required methods:
The below links may be useful in providing examples for this approach:
http://www.mathworks.com/matlabcentral/answers/99993-how-do-i-call-a-simple-hello-world-java-program-in-matlab http://blogs.mathworks.com/community/2009/07/06/calling-java-from-matlab/
Hope this helps!
-Shruti
참고 항목
카테고리
Help Center 및 File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!