User`s manual
1 Calling C and Fortran Programs from MATLAB
1-2
Although MATLAB
®
is a complete, self-contained environment for
programming and manipulating data, it is often useful to interact with data
and programs external to the MATLAB environment. MATLAB provides an
interface to external programs written in the C and Fortran languages.
This section discusses the following topics:
•“Introducing MEX-Files”
•“MATLAB Data”
•“Building MEX-Files”
•“Custom Building MEX-Files”
•“Troubleshooting”
•“Additional Information”
For additional information and support in building your applications, see the
section, “Additional Information” on page 1-42.
Note In platform independent discussions that refer to directory paths, this
book uses the UNIX convention. For example, a general reference to the
mex
directory is <matlab>/extern/examples/mex.