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

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

问题描述

在 Internet 上浏览之后,看起来可以在 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 代码交互).这很简单.在要运行程序的计算机上,您需要安装 Matlab Runtime 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天全站免登陆