Get Started with MATLAB Coder (original) (raw)

Generate C and C++ code from MATLAB code

MATLAB® Coder™ generates C and C++ code from MATLAB code for a variety of hardware platforms, from desktop systems to embedded hardware. 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. The generated code is readable and portable. You can combine it with key parts of your existing C and C++ code and libraries. You can also package the generated code as a MEX-function for use in MATLAB.

When used with Embedded Coder®, MATLAB Coder provides code customizations, target-specific optimizations, code traceability, and software-in-the-loop (SIL) and processor-in-the-loop (PIL) verification.

To deploy MATLAB programs as standalone applications, use MATLAB Compiler™. To generate software components for integration with other programming languages, use MATLAB Compiler SDK™.

Installation and Configuration

Tutorials

Code Generation Quick Start

Code Generation Guide: Generate Deployable C/C++ Code

Prepare MATLAB code for code generation and generate C/C++ code.

About Code Generation from MATLAB Algorithms

Generate C/C++ Code from a MATLAB Function

Generate C/C++ Code from a MATLAB Function

Generate C/C++ code from a MATLAB function using the codegen command.

Interactive Learning

Click to go to the MATLAB Onramp.

MATLAB Coder Onramp
Learn the basics of C and C++ code generation from MATLAB functions.

Videos

Click to start video

Generate C Code from MATLAB Code
Workflow for generating C/C++ code from MATLAB code.