This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Code Acceleration and Code Generation from MATLAB

In many cases, you may want your code to run faster and more efficiently. Code acceleration provides optimizations for accelerating fixed-point algorithms through MEX file building. In Fixed-Point Designer™ the fiaccel function converts your MATLAB® code to a MEX function and can greatly accelerate the execution speed of your fixed-point algorithms.

Code generation creates efficient, production-quality C/C++ code for desktop and embedded applications. There are several ways to use Fixed-Point Designer software to generate C/C++ code.

MATLAB Coder™ (codegen) functionAutomatically convert MATLAB code to C/C++ codeMATLAB Coder code generation software licenseC Code Generation at the Command Line (MATLAB Coder) in the MATLAB Coder documentation
MATLAB FunctionUse MATLAB code in your Simulink® models that generate embeddable C/C++ codeSimulink licenseWhat Is a MATLAB Function Block? (Simulink) in the Simulink documentation

MATLAB code generation supports variable-size arrays and matrices with known upper bounds. To learn more about using variable-size signals, see Code Generation for Variable-Size Arrays.

Was this topic helpful?