MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   如何从Mathematica调用Matlab函数? (https://www.labfans.com/bbs/showthread.php?t=24251)

poster 2019-12-10 20:48

如何从Mathematica调用Matlab函数?
 
我想从mathematica调用matlab函数。如何做到最好?

我[URL="http://library.wolfram.com/infocenter/MathSource/618/"]在Wolfram网站上[/URL]发现了一个[URL="http://library.wolfram.com/infocenter/MathSource/618/"]古老的帖子,[/URL]描述了执行此操作的方法,这仍然是连接两者的方法吗?



[B]回答:[/B]

您可以使用[URL="http://library.wolfram.com/infocenter/Demos/4821/"]mEngine[/URL] 。预编译的Windows MathLink可执行文件可与Mathematica 8一起使用。在Windows上,您可能需要[URL="https://stackoverflow.com/questions/8326258/install-mathlink-program-with-arbitrary-path-environment"]将MATLAB添加到系统路径中[/URL] 。

与NETLink方法相比,此方法的优点在于,在Mathematica和MATLAB之间传输变量将像mGet["x"]或mPut["x"]一样容易。尽管这也可以通过NETLink来实现,但是mEngine的优点是您不需要自己实现它(如果像我一样,您对COM或.NET一无所知,那就太好了)



[url=https://stackoverflow.com/questions/4510770]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 11:00

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.