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. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Share MEX Files

Share MEX files with other MATLAB® users

When you share a MEX file, your users need the following information about the configuration used to build the MEX file:

  • MATLAB version

  • Build platform

  • Compiler

Functions

verVersion information for MathWorks products
computerInformation about computer on which MATLAB is running
mexextBinary MEX file-name extension
mex.getCompilerConfigurationsGet compiler configuration information for building MEX files

Topics

Document Build Information in the MEX File

This example shows how to document the xtimesy MEX file built on a Windows® platform using a Microsoft® Visual C++® compiler.

Troubleshooting

MEX File Dependent Libraries

How to assess run-time errors.

Platform Compatibility

If you get a binary MEX file from another source, be sure that the file was compiled for the same platform on which you want to run it.

Invalid MEX File Errors

What to do when you get an invalid MEX file error.