Main Content

MATLAB Supports Fortran 77

MATLAB® supports MEX files written in Fortran 77. When troubleshooting MEX files written in other versions of Fortran, consult outside resources.

For example, the length of the following statement is fewer than 72 characters.

mwPointer mxGetN, mxSetM, mxSetN, mxCreateStructMatrix, mxGetM

However, when MATLAB expands the preprocessor macro, mwPointer, the length of the statement exceeds the limit supported by Fortran 77.