How can I convert matlab code into java code?
19 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2015-9-7
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 个评论
Walter Roberson
2015-9-11
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
另请参阅
类别
在 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!