필터 지우기
필터 지우기

How can I convert matlab code into java code?

조회 수: 20 (최근 30일)
Marcxiya Palani
Marcxiya Palani 2015년 9월 7일
댓글: Walter Roberson 2015년 9월 11일
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)

답변 (1개)

Walter Roberson
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
Marcxiya Palani
Marcxiya Palani 2015년 9월 11일
I need the procedure to convert matlab code into java. i am using matlabR2013a.
Walter Roberson
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 CenterFile Exchange에서 Java Package Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by