problem to compile a matlab project into java project

1 view (last 30 days)
Hello there. i need your help to solve a problem:
I have a matlab project (that simulates a physical phenomenon), which contains many file types:
1)main.m file: which is the file that should become the "main" after compiling the matlab project into java.
2)other *.m files: they contain functions used by the main.m
3) *.fig files: used by some *.m files
4) *.class files: used by some *.m files
5) *.txt and *.jpg files
when i run the main.m file in matlab, the project works fine (the window i created appears and everything is fine).
NOW i want to compile this matlab project into a java project, i used javabuilder JA and installed the MCR. but it doesn't work! i have little to no experience with JA and i don't know how to "tell" JA which file is the "main", which other files are used by the main etc....
thank u for ur help.

Answers (1)

Friedrich
Friedrich on 21 Jul 2011
Hi, in such a case I would recommend to start with an example:
This will show you how to compile your MATLAB Code into a java class and how to use it in JAVA.
Once you have unterstand the workflow and the needed steps you can proceed with your project.

Categories

Find more on Java Package Integration in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!