Monday, June 6, 2011

Automatic Matlab to C code generation

 

If you have access to Matlab R2011a you can use it to generate the C code.

MATLAB Coder generates standalone C and C++ from MATLAB code. The generated source code is portable and readable. MATLAB Coder supports a subset of core MATLAB language features, including program control  constructs, functions, and matrix operations. It can generate MEX functions that let you accelerate computationally intensive portions of MATLAB code and verify the behavior of the generated code.

When to Use MATLAB Coder

Use MATLAB Coder to:

  • Generate readable, efficient, standalone C/C++ code from MATLAB code.

  • Generate MEX functions from MATLAB code to:

    • Accelerate your MATLAB algorithms.

    • Verify generated C code within MATLAB.

  • Integrate custom C/C++ code into MATLAB.

No comments: