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.

Executable Fortran MEX Files

Build Fortran subroutines into MATLAB® functions


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.