MathWorks has introduced MATLAB Coder, which generates standalone C and C++ code from MATLAB code. The generated source code is portable and readable.
MATLAB Coder eliminates the need to manually translate MATLAB algorithm code into C and C++ code for prototyping, implementation, and software integration.
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.
MATLAB Coder works with Simulink Coder and Embedded Coder to generate C code from Simulink models that contain MATLAB code. The generated C code can be used for:
• Standalone execution
• Integration with other software
• Accelerating MATLAB algorithms
• Embedded implementation
. ANSI/ISO compliant C and C++ code generation
. MEX function generation for fixed-point and floating-point math
. Project management tool for specifying entry points, input data properties, and other code-generation configuration options
. Static or dynamic memory allocation for variable-size data
. Code generation support for many functions and System objects in Communications System Toolbox, DSP System Toolbox, and Computer Vision System Toolbox
. Support for common MATLAB language features, including matrix operations, subscripting, program control statements (if, switch, for, while), and structures
Figure: Code generation from MATLAB Coder. Develop algorithms (left) in MATLAB and then use the MATLAB Coder project manager interface (center) to automatically generate portable, readable C code (right).
MATLAB Coder is available now.
Prices start at $6,500.
For additional information on the features and specifications of MATLAB Coder, Simulink Coder, and Embedded Coder, click here