what's the best way to convert Matlab code to a static C/C++ library
1 Answer
Use the Matlab Coder or Matlab Compiler to convert MATLAB Code into static libraries.
5 Comments
Darkmoor
I would like to ask if the coder works for any matlab code, independently how much complex the matlab code is and how complex it became in C++. I other words, what is preferable, hand made or automatic generation? Thank you.
Lokesh A. R.
Matlab Coder was not previously called Matlab Compiler. There are two similar products. Note: All code are, MATLAB Compiler friendly, not MATLAB Coder friendly.
damienfrancois
@LokeshA.R. In the 2006 to 2010a versions I have, there is no Coder available, and the Compiler that comes with it does exactly what the description of the Coder is on the website, while the (current) description of the Compiler looks like more a packaging tool. Hence my confusion
Lokesh A. R.
@damienfrancois: No problem, I had thought that you might be using an older version of MATLAB. I have updated your answer.