Documentation

MATLAB Coder

Generate C and C++ code from MATLAB code

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 Coderlets you incorporate legacy C code into your MATLAB algorithm and into the generated code.

By usingMATLAB Coderwith Embedded Coder®,你可以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 Programming for Code Generation

MATLAB language syntax and functions for code generation; data definition

Code Generation

C/C++ and MEX code generation, fixing errors, behavioral verification

Deployment

C/C++ libraries and executables, integration into external applications

Performance

Reduce code generation time, improve execution speed, reduce memory usage of generated code

MATLAB Algorithm Acceleration

Acceleration using generated MEX functions

Numeric Conversion

Fixed-point conversion, single-precision conversion (requires Fixed-Point Designer™)

Check Bug Reports for Issues and Fixes

MathWorks reports critical known bugs on its Bug Report System