如何在C#项目中嵌入用Matlab编写的代码 [英] how to embed code written in matlab in c# project

查看:179
本文介绍了如何在C#项目中嵌入用Matlab编写的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用c#开发软件.但问题是,我
必须要做一些图像处理,而matlab就是这样做的方法.
我想知道是否可以将matlab嵌入到c#中,怎么做?


我在matlab帮助中找到了".net的matlab生成器".使用这个我做了一个函数,它的dll也被编译和编译.成功了.

当我在C#中打开项目以在此使用此编译的dll时,由于我在Internet上创建了我下载了MCR(matlab组件运行时).我已经在项目的引用中添加了它.但我仍然无法使用matlab函数.其在MWArray组件中的给定错误.
我不知道还要添加什么作为参考.
请建议我在安装MCR之后如何将matlab生成的函数嵌入到c#中.

I am currently developing a software using c#. But the thing is, i
have to do some image processing, and matlab is just the way to do it.
I was wondering if it is possible to embed matlab to c# and how?


I have found in matlab help "matlab builder for .net". using this i have made a function and its dll is also build and compiled.Its a success.

when open the project in C# to use this compiled dll here ,as i founded on internet i have downloaded MCR(matlab component runtime). I have added this in referenceses of the project. but still i am not able to use matlab function. its giving error in MWArray component.
I dont know what more to add as reference.
Please suggest me how to embed the matlab made function into c# after installing MCR.

推荐答案

您可能想看看

这篇关于如何在C#项目中嵌入用Matlab编写的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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