This is machine translation

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

Call MEX-File Functions

Call C/C++ or Fortran MEX-file functions from MATLAB®

A MEX-file is a function, created in MATLAB, that calls a C, C++, or Fortran subroutine. To call a MEX-file, use the name of the file, without the file extension. The MEX-file contains only one function or subroutine, and its name is the MEX-file name. The file must be on your MATLAB path.

For information about creating MEX-files, see MEX File Creation API.

For information about using MEX S-functions in models, see your Simulink® documentation.


mexext Binary MEX file-name extension
inmem Names of functions, MEX-files, classes in memory
Was this topic helpful?