Is it possible to convert MATLAB code to C code?
71 views (last 30 days)
Show older comments
MathWorks Support Team
on 29 Jun 2011
Commented: Walter Roberson
on 12 Jul 2019
I would like translate my MATLAB code to C code for use in projects outside of MATLAB.
Accepted Answer
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:
1 Comment
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!