How can I convert matlab code into java code?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How can I convert matlab code into java code? I need step by step procedure for this conversion. Is there any any additional software needs for conversion? (I am using Matlab 2013a version)
0 comentarios
Respuestas (1)
Walter Roberson
el 7 de Sept. de 2015
There is no known product to convert MATLAB to Java.
As Mohammad Abouali notes, there is the MATLAB Compiler SDK. Compiler SDK reads the MATLAB source and parses it and outputs data that represents the code. The data is bundled together with MCR, the MATLAB Component Runtime, and with some Java routines that call MCR. MCR is a DLL that acts as the MATLAB engine (but without the command line). This uses Java's ability to call external code. The Java generated is small, just enough to call MCR to execute the stored data. The generated product can only be executed on the operating systems that MCR works on -- MS Windows, Linux, and OS-X.
If there were a product that converted MATLAB to Java, the result would have to work on all systems that supported Java. But there is no known product that does that.
2 comentarios
Walter Roberson
el 11 de Sept. de 2015
There is no known product to convert MATLAB to Java.
There is no procedure other than understanding both languages and understanding the program and rewriting the code in Java.
If you have MATLAB Compiler SDK along with MATLAB Compiler, then you can use it to convert (most) MATLAB code to data that can be called with Java. You can find more information about MATLAB Compiler SDK at this link
Ver también
Categorías
Más información sobre Java Package Integration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!