Matlab Coder for Compatible C

Matlab supports generation of C/C++ code files from Matlab script ".m" files using Matlab Coder

Introduction

The code generated can be used stand-alone or as subroutines within Matlab (called '.mex' files - 'matlab executables'). A C/C++ compiler must be announced to Matlab using

mex -setup

A selection of installed compilers will appear. Select the one of you prefer.

 

Stand - Alone C

 

Generate C/C++ code

codegen

Identift

 

 

 

Tutorials

  1. Generating C Code from Your MATLAB Algorithms (Loren on the Art of Matlab)