The Fortran Matrix Library provides a set of Fortran routines that handle the types supported by MATLAB®. For each data type, there is a specific set of functions that you can use for data manipulation.
Source code for Fortran examples are located in the matlabroot/extern/examples/refbook folder of your MATLAB installation. To build these examples, make sure you have a Fortran compiler selected using the mex -setup command. Then at the MATLAB command prompt, type:
where filename is the name of the example.
This section looks at source code for the examples. Unless otherwise specified, the term "MEX-file" refers to a source file.
For a list of MEX example files available with MATLAB, see Table of MEX-File Source Code Files.