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 Source MEX-Files
Debugging MEX-file source code from MATLAB software
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.
Choose your country 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 location from the following list:
See all countries