如何从Java运行MATLAB代码? [英] How to run MATLAB code from Java?
问题描述
我在使用Java运行MATLAB代码时遇到了问题。如果您对此有所了解,请帮帮我吗?
I am facing problem in running MATLAB code from Java. If you know something on this, could u please help me out?
推荐答案
如果您不想购买MathWork的MATLAB Builder对于Java Toolbox,您可以使用MATLAB的未记录的JMI(Java-MATLAB接口)。在CSSM新闻组(或Google)中搜索JMI或基于JMI的JMatLink。 MATLAB代码本身充满了JMI用法示例 - 在整个MATLAB安装中使用MATLAB编辑器的搜索工具搜索jmi。
If you don't want to buy MathWork's MATLAB Builder for Java Toolbox, you can use MATLAB's undocumented JMI (Java-MATLAB Interface). Search the CSSM newsgroup (or Google) for JMI, or JMatLink which is based on JMI. The MATLAB code itself is full of JMI usage examples - search "jmi" using the MATLAB Editor's search tool over the entire MATLAB installation.
请注意,JMI既未记录也未正式MathWorks支持。此外,如果使用不当,它可能会挂起或崩溃您的应用程序。但与工具箱不同,它是免费的。
Note that JMI is neither documented nor officially supported by MathWorks. Moreover, if improperly used it can hang or crash your application. But it's free, unlike the toolbox.
这篇关于如何从Java运行MATLAB代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!