开发者

how to convert from matlab file to dll

I am using matlab 2009 -- I have .m 开发者_如何学Gofile.

I want to convert it to dll file so i can use it in c++.

how can I do that, someone told me to use the matlab compiler and is it free?


First you need the compiler. Available from Mathworks here. Also, the compiler is not free for most people, a student version is available when bundled with other Mathworks products.

Mathworks provides a 'Free MATLAB Compiler Interactive Kit' which provides walkthroughs covering the DLL and executable build process.


Another option is to use MATLAB's C/C++ API to convert your source code to C++. All MATLAB's functions are accessible, but it's a pain to write this without good wrappers. It might be worth your while to purchase the compiler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜