| External Interfaces/API | ![]() |
Examples of Fortran MEX-Files
The following sections include information and examples describing how to pass and manipulate the different data types when working with MEX-files. These topics include:
The MATLAB API provides a set of routines for Fortran that handle double-precision data and strings in MATLAB. For each data type, there is a specific set of functions that you can use for data manipulation.
| Note
You can find the most recent versions of the example programs from this chapter at the anonymous FTP server, ftp://ftp.mathworks.com/pub/tech-support/docexamples/apiguide/R12/refbook |
| The %val Construct | A First Example -- Passing a Scalar | ![]() |