convert Matlb files to DLL files

18 Ansichten (letzte 30 Tage)
itai
itai am 7 Dez. 2013
Kommentiert: Walter Roberson am 2 Jan. 2017
Hi everyone,
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?

Antworten (4)

sixwwwwww
sixwwwwww am 7 Dez. 2013
Dear Itai,
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!
  2 Kommentare
itai
itai am 7 Dez. 2013
thank you for your answer. I will try it.
sixwwwwww
sixwwwwww am 7 Dez. 2013
you are welcome

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 7 Dez. 2013
  1. You can convert the code by hand
  2. You can purchase MATLAB Coder (provided you are not using a Student Version license)
  3. 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#.
  3 Kommentare
Walter Roberson
Walter Roberson am 7 Dez. 2013
Note that MATLAB Compiler is an optional extra-cost toolbox (and is also not available with Student Version licenses)
Walter Roberson
Walter Roberson am 2 Jan. 2017
Note: after the above was written, the various *Builder were bundled together and some functionality was moved from MATLAB Compiler. The product you would use these days would be MATLAB Compiler SDK.

Melden Sie sich an, um zu kommentieren.


Mani Ahmadian
Mani Ahmadian am 25 Okt. 2014
Dear Walter
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
Mani

Murali Dharan
Murali Dharan am 2 Jan. 2017
I want to convert some matlab coding as .dll files. is there any way to done this? please help me to do my project.
  1 Kommentar
Walter Roberson
Walter Roberson am 2 Jan. 2017
If "project" implies that you are using a Student license, then you would have to use MATLAB Coder (which does not support all parts of MATLAB.) If you were using a Standard license or an Academic license then MATLAB Compile SDK would be the product to use.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by