This is machine translation

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

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

MEX File Applications

Write C/C++ or Fortran programs that work with MATLAB®

If you have functions written in the C or C++ programming language, you can call them from MATLAB by creating MEX files. For information about running an existing MEX file, see Call MEX File Functions.

To use MATLAB from within the C/C++ programming environment, use one of the MATLAB engine applications. The engine API for C++ uses features from C++11 with the MATLAB Data API. Alternatively, use the engine API for C and Fortran with the C Matrix Library API.

Using any of these features requires a knowledge of the C or C++ programming language.

Related Information

Was this topic helpful?