Main Content

Which Code Generation Feature to Use

To...Use...Required ProductTo Explore Further...

Generate MEX functions for verifying generated code

codegen function

MATLAB® Coder™

Try this in Accelerate MATLAB Algorithm by Generating MEX Function (MATLAB Coder).

Produce readable, efficient, and compact code from MATLAB algorithms for deployment to desktop and embedded systems.

MATLAB Coder app

MATLAB Coder

Try this in Generate C Code by Using the MATLAB Coder App (MATLAB Coder).

codegen function

MATLAB Coder

Try this in Generate C Code at the Command Line (MATLAB Coder).

Generate MEX functions to accelerate MATLAB algorithms

MATLAB Coder app

MATLAB Coder

See Accelerate MATLAB Algorithms (MATLAB Coder).

codegen function

MATLAB Coder

Integrate MATLAB code into Simulink®

MATLAB Function block

Simulink

Try this in Call MATLAB Function Files in MATLAB Function Blocks.

Speed up fixed point MATLAB code

fiaccel function

Fixed-Point Designer™

Learn more in Code Acceleration and Code Generation from MATLAB (Fixed-Point Designer).

Integrate custom C code into MATLAB and generate efficient, readable code

codegen function

MATLAB Coder

Learn more in Call Custom C/C++ Code from the Generated Code (MATLAB Coder).

Integrate custom C code into code generated from MATLAB

coder.ceval function

MATLAB Coder

Learn more in coder.ceval (MATLAB Coder).

Generate HDL from MATLAB code

MATLAB Function block

Simulink and
HDL Coder™

Learn more at www.mathworks.com/
products/slhdlcoder
.