user462715
user462715

Reputation: 41

how to convert from matlab file to dll

I am using matlab 2009 -- I have .m file.

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?

Upvotes: 1

Views: 3846

Answers (2)

André Caron
André Caron

Reputation: 45239

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.

Upvotes: 0

Greg Buehler
Greg Buehler

Reputation: 3894

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.

Upvotes: 1

Related Questions