How do I package a multi-file MATLAB project into a Java program?
조회 수: 3 (최근 30일)
이전 댓글 표시
While compiling a Java package, I am confused how to indicate the main *.m file and the other functions (also *.m's). Must I assign the class name similar to the main function? Or do I have to put the function in the 'Classes' pane and the other *.m files in the 'Shared Resources and Helper Files'?
In short, how do I package a multi-*.m file MATLAB project (with one main function) to integrate into a Java program?
댓글 수: 0
채택된 답변
Martijn
2011년 5월 12일
With MATLAB Builder JA, there is no main MATLAB file. The MATLAB functions which you add to a certain class will become methods of that class in Java. So basically you only add the MATLAB files which you want to become methods of the Java class. Other files, on which these methods may depend, should automatically be detected and picked up by MATLAB Builder JA; in general you do not have to give them a specific name or have to add them manually to your project. Only if a function is called through the EVAL, FEVAL (or similar) function, then it must be manually added to the "Shared Resources and Helper Files".
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Java Package Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!