Matlab到可视C ++界面 [英] matlab to visual c++ interface

查看:112
本文介绍了Matlab到可视C ++界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Visual C ++中使用Matlab函数
anybudy有任何想法

i want to use matlab function in visual c++
anybudy have any idea

推荐答案

那又如何:

从C/C ++和Fortran程序调用MATLAB引擎 [ ^ ]
What about that :

Calling MATLAB Engine from C/C++ and Fortran Programs[^]


Matlab提供了 ^ ](可能位于将其源代码编译为共享库,需要额外付费(不确定).编译后,您应该能够以dll或静态lib的形式访问代码(有关支持的内容,请参见编译器规范).

或者,您可以根据所学知识编写自己的例程.与仅使用Matlab编译器发布的代码相比,这种方法可能使您可以优化代码并更快地运行它,并且通常对于商业产品而言是更好的方法.
Matlab offers a compiler[^] (probably at an extra charge, not sure though) to compile their source into a shared library. Once compiled, you should be able to access the code as a dll or a static lib (see compiler specs for what they support).

Alternatively, you can code your own routines based on what you''ve learned. This approach will probably allow you to optimize your code and run it faster than just using what the Matlab compiler puts out and is generally a better approach for a commercial product.


这篇关于Matlab到可视C ++界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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