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 MEX Function Generation at the Command Line.

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

MATLAB Coder user interface

MATLAB Coder

Try this in C Code Generation Using the Project Interface.

codegen function

MATLAB Coder

Try this in C Code Generation at the Command Line.

Generate MEX functions to accelerate MATLAB algorithms

MATLAB Coder user interface

MATLAB Coder

See Accelerate MATLAB Algorithms.

codegen function

MATLAB Coder

Integrate MATLAB code into Simulink®

MATLAB Function block

Simulink

Try this in Track Object Using MATLAB Code.

Speed up fixed-point MATLAB code

fiaccel function

Fixed-Point Designer™

Learn more in Code Acceleration and Code Generation from MATLAB.

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

codegen function

MATLAB Coder

Learn more in Specify External File Locations.

Integrate custom C code into code generated from MATLAB

coder.ceval function

MATLAB Coder

Learn more in coder.ceval.

Generate HDL from MATLAB code

MATLAB Function block

Simulink and
HDL Coder™

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

Was this topic helpful?