Matlab和C#之间的互操作 [英] Interoperating between Matlab and C#

查看:237
本文介绍了Matlab和C#之间的互操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在互联网附近偷看后,它看起来是可能的C#与Matlab之间互操作。我想知道如果任何人有过成功,也和他们做了什么这样做。如果可能的话不知怎么拉它关闭不使用的COM。感谢您的时间。

After peeking around the internet it looks like it is possible to interop between C# and Matlab. I am wondering if anyone has had success with it and what they did to do so. If possible somehow pulling it off without the use of COM. Thanks for your time.

推荐答案

是的,很可能的。虽然我结束了使用C接口和调用到,使用混合模式DLL(和获得C#调用成......但那是因为我也有一些其他的C code接口)。这是非常简单的。在要运行程序的计算机,您需要安装Matlab的运行MCRInstaller.exe。

Yes, quite possible. Though I ended up using the C interface and calling into that using a mixed-mode DLL (and getting C# to call into that... but that was because I was also interfacing with some other C code). It's quite straightforward. On computers where you want to run your program, you'll need to install Matlab Runtime MCRInstaller.exe.

编辑:删除断开的链接

这篇关于Matlab和C#之间的互操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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