MATLAB® Coder™ generates readable and portable C and C++ code from MATLAB code. It supports most of the MATLAB language and a wide range of toolboxes. You can integrate the generated code into your projects as source code, static libraries, or dynamic libraries. You can also use the generated code within the MATLAB environment to accelerate computationally intensive portions of your MATLAB code. MATLAB Coder lets you incorporate legacy C code into your MATLAB algorithm and into the generated code.
By using MATLAB Coder with Embedded Coder®, you can further optimize code efficiency and customize the generated code. You can then verify the numerical behavior of the generated code using software-in-the-loop (SIL) and processor-in-the-loop (PIL) execution.
Learn the basics of MATLAB Coder
MATLAB language syntax and functions for code generation; data definition
C/C++ and MEX code generation, fixing errors, behavioral verification
C/C++ libraries and executables, integration into external applications
Reduce code generation time, improve execution speed, reduce memory usage of generated code
Acceleration using generated MEX functions
Fixed-point conversion, single-precision conversion (requires Fixed-Point Designer™)
MathWorks reports critical known bugs on its Bug Report System