
389
8
Using Compiled Code
MATLAB includes a variety of ways by which we could use the speed associated with
native code in order to improve the performance of our MATLAB code. These mechanisms
include:
• Using compiled C/C++/Fortran code in a specic (MEX) format
• Using MATLAB Coder Toolbox to convert m-code to compiled C/C++-code
• Running MATLAB code on dedicated FPGA hardware
• Improving the performance of compiled (deployed) code
• Integrating Java functionality in MATLAB
• Using external (third-party) libraries in MATLAB
8.1 Using MEX Code
8.1.1 Introduction
MEX (MATLAB Executable) les are written in C, C++, or Fortran in a certain standard ...