convert Matlb files to DLL files
18 views (last 30 days)
I need to convert MATLAB files that contain algorithms to DLL files, to run them in program at C# language. I choose at C++ 2010 compiler after i download the "VS2010MEXSupport.zip" from this website. How can i do this converting ? i don't have a "MATLAB coder" installed in my MATLAB.
Can anyone help me?
sixwwwwww on 7 Dec 2013
Once I was also asked to do that as well and I did in the following way and worked for me quite well. You can find the attached .pdf document for complete procedure from deploying MATLAB m.file into .dll and then using it in C# project. Find the attachment for complete step by step procedure. I hope it will help you alot as well. Good luck!
Walter Roberson on 7 Dec 2013
- You can convert the code by hand
- You can purchase MATLAB Coder (provided you are not using a Student Version license)
- You can use MATLAB Compiler together with NET Builder, to create routines that can be called from C#. (I am not positive that this will work). Note that this will not make the MATLAB code into C# code, it will just make something that can be called from C#.
Mani Ahmadian on 25 Oct 2014
Would you please explain how we can convert our m-files by hand? I use NET Builder to convert my functions to dll one, but when I push the package button, it fails! I use MATLAB 2014a and as I checked before I have enough licenses.
Please help me to solve the problem.
Thanks a lot