2

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

1
  • 1
    For the reference take a look in this library also. Commented Jan 19, 2014 at 12:46

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

5 Comments

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.
Ok, I think I found it.
Matlab Coder was not previously called Matlab Compiler. There are two similar products. Note: All code are, MATLAB Compiler friendly, not MATLAB Coder friendly.
@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: No problem, I had thought that you might be using an older version of MATLAB. I have updated your answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.