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 incorporate your existing C code and libraries to get the ultimate efficiency for the key parts of your algorithm, or to reuse code you trust. You can also package the generated code as a MEX-function for use in the MATLAB environment for verification or acceleration.

Embedded Coder® enhances MATLAB Coder for production use with support for code customization, target-specific optimizations, code traceability, and software-in-the-loop (SIL) and processor-in-the-loop (PIL) verification. 

To deploy complete applications, including the user interfaces, use MATLAB Compiler SDK™.


Run Anywhere

Generate readable and portable ANSI C source code. Deploy code royalty-free.

Learn more

Prototype on Hardware

Get to hardware fast with automatic conversion of your algorithm to C.

Learn more

Integrate with Software

Reuse MATLAB algorithms as C code within your software environment.

Learn more

Accelerate Algorithms

Generate C code and compile it for use inside MATLAB.

Learn more

Product Resources

Discover more about MATLAB Coder by exploring these resources.


Explore documentation for MATLAB Coder functions and features, including release notes and examples.


Browse the list of available MATLAB Coder functions.

System Requirements

View system requirements for the latest release of MATLAB Coder.

Technical Articles

View articles that demonstrate technical advantages of using MATLAB Coder.

User Stories

Read how MATLAB Coder is accelerating research and development in your industry.

Community and Support

Find answers to questions and explore troubleshooting resources.

Hardware Support

Connect MATLAB Coder to hardware platforms.

Supported Functions

Browse the list of available MATLAB Coder functions.


MATLAB Coder apps enable you to quickly access common tasks through an interactive interface.

Try or Buy

Get a Free Trial

Test drive MATLAB Coder.

Get a trial

Ready to Buy?

Purchase MATLAB Coder and explore related products.

Contact sales
Pricing and licensing

Have Questions?


Contact Bill Chou,
MATLAB Coder Technical Expert

Email Bill

MATLAB Coder requires: MATLAB

Related Solutions

Use MATLAB Coder to solve scientific and engineering challenges:

News and Events

Use MATLAB Coder to generate readable and portable C code from your MATLAB algorithms to integrate into other applications outside MATLAB. Accelerate your MATLAB algorithms within MATLAB by generating MEX files.
Generate readable & portable C code from MATLAB algorithms and integrate it into an iPhone, iPad, or Android app.

Free Quick Start Guide

The Joy of Generating C Code from MATLAB