2

what's the best way to convert Matlab code to a static C/C++ library

damienfrancois
  • 52,978
  • 9
  • 96
  • 110
Scarnet
  • 738
  • 2
  • 11
  • 36

1 Answers1

3

Use the Matlab Coder or Matlab Compiler to convert MATLAB Code into static libraries.

Lokesh A. R.
  • 2,326
  • 1
  • 24
  • 28
damienfrancois
  • 52,978
  • 9
  • 96
  • 110
  • 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. – Darkmoor Jan 19 '14 at 12:49
  • Ok, I think I found [it](http://stackoverflow.com/questions/10940669/matlab-coder-vs-hand-coding). – Darkmoor Jan 19 '14 at 12:53
  • Matlab Coder was not previously called Matlab Compiler. There are two similar products. Note: All code are, MATLAB Compiler friendly, not MATLAB Coder friendly. – Lokesh A. R. Jan 19 '14 at 13:34
  • @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 – damienfrancois Jan 19 '14 at 16:24
  • @damienfrancois: No problem, I had thought that you might be using an older version of MATLAB. I have updated your answer. – Lokesh A. R. Jan 19 '14 at 16:38