Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Executable Fortran MEX Files

Build Fortran subroutines into MATLAB® functions

Topics

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.

Troubleshooting

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.

Was this topic helpful?