MATLAB: Is it possible to convert MATLAB code to C code

ccodecompilerconversionconvertconvertorgenerategenerationintom-codeMATLABmex/codegenr14r14sp1translationtranslator

I would like translate my MATLAB code to C code for use in projects outside of MATLAB.

Best Answer

As of release R2011a, we have a product MATLAB® Coder™ that generates standalone C and C++ from MATLAB® code. The generated source code is portable and readable. MATLAB Coder supports a subset of core MATLAB language features, including program control constructs, functions, and matrix operations. It can generate MEX functions that let you accelerate computationally intensive portions of MATLAB code and verify the behavior of the generated code.
For more information about the MATLAB Coder, please see: