What's MEX?


MEX is a built-in utility in MATLAB that is used to convert FORTRAN or C-code to MATLAB Executable ("MEX") format. MEX-files are dynamically linked subroutines that can be called from within MATLAB as regular MATLAB functions. Unlike M-files, which are platform-independant, MEX-files are platform-specific, with platform-specific extensions. A list of platform-specific extensions for MEX-files can be found in chapter 2 of the MATLAB Application Program Interface guide.

Back to Table of Contents