如何从Mathematica调用Matlab函数? [英] How to invoke a matlab function from mathematica?

查看:503
本文介绍了如何从Mathematica调用Matlab函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I would like to call a matlab function from mathematica. How best to do that?

我在Wolfram网站上找到了古代帖子,其中描述了一种方法,这仍然是连接两者的方法吗?

I have found an ancient post on Wolfram site describing a way to do this, is this still the way to connect the two?

推荐答案

您可以使用 mEngine .预编译的Windows MathLink可执行文件可与Mathematica 8一起使用.在Windows上,您可能需要添加MATLAB到系统路径.

You can use mEngine. The precompiled Windows MathLink executable works with Mathematica 8. On Windows you may need to add MATLAB to the system path.

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

The advantage of this compared to the NETLink method is that transferring variables between Mathematica and MATLAB will be as easy as mGet["x"] or mPut["x"]. Although this might be possible with NETLink too, the advantage of mEngine is that you don't need to implement it yourself (which is great if like me you don't know anything about COM or .NET)

这篇关于如何从Mathematica调用Matlab函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆