Is it possible to convert MATLAB code to C code?

71 views (last 30 days)
I would like translate my MATLAB code to C code for use in projects outside of MATLAB.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Jun 2011
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:

More Answers (0)


Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by