MathWorks Machine Translation
The automated translation of this page is provided by a general purpose third party translator tool.
MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation.
To help you configure your system using a sample MEX file, see
Build MEX File.
For information about writing a MEX file, see Create C Source MEX File.
Build Fortran MEX File
This example shows how to build the example
MEX file, timestwo.
What You Need to Build MEX Files
How to start creating MEX files.
Change Default Compiler
How and when to change the default compiler.
Custom Build with MEX Script Options
Customizing the MEX build process.
Debug Fortran MEX Files
These examples show how to debug Fortran MEX files.
MATLAB Supports Fortran 77
MATLAB supports MEX files written in Fortran 77.
Compiling MEX File Fails
What to do when compiling a MEX file fails.
Symbol mexFunction Unresolved or Not Defined
Every MEX file needs a mexFunction.
and Compatible Compilers
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office