Write Fortran Engine Applications
Engine applications are standalone programs that allow you to call MATLAB® from your own Fortran programs, using MATLAB as a computation engine. To build a Fortran engine application, you need:
The ability to write Fortran source code. You can create these files with the MATLAB Editor.
A Fortran compiler supported by MATLAB. For an up-to-date list of supported compilers, see Supported and Compatible Compilers.
Fortran Matrix API functions. However, the
mxSetPropertyfunctions are not supported for standalone applications.
To build the application, call the
mexcommand with the
To run the application, tell the operating system where the API shared libraries reside by setting the relevant environment variable.
On Windows, Register MATLAB as a COM Server.
For examples, see: