16

MATLAB provides toolboxes (Matlab Coder, Matlab compiler, Simulink Coder) to generate C and C++ source codes for built in function. I am wondering if there is any toolbox or feature to generate java source code ( not encrypted JAR / class files) for the matlab code/built in functions?

4

2 回答 2

11

没有任何东西可以将 MATLAB 源代码转换为 Java 源代码。附加产品 MATLAB Builder JA 将存档和加密您的 MATLAB 源代码,并创建一个独立的 .jar 文件包装器,使您能够从 Java 调用 MATLAB 代码,但它不会生成 Java 源代码。

请注意,MATLAB Coder 和 Simulink Coder 生成 C 代码,而不是 C++ 代码,并且 MATLAB Compiler 的工作方式与 Builder JA 类似,归档和加密您的 MATLAB 代码并生成可执行包装器。

编辑:自 R2015b 版本以来,生成 .jar 文件的功能已从 MATLAB Builder JA 移至新产品 MATLAB Compiler SDK,该产品还将生成 .dll 文件和 .NET 程序集。MATLAB Builder JA 不再作为产品存在。

于 2013-01-11T21:44:36.223 回答
5

I think that is the product you are looking for: MATLAB Builder JA (but the builder encrypts your MATLAB functions and generates a Java wrapper around them so that they behave just like any other Java class.)

于 2013-01-11T08:08:29.673 回答