Write Fortran Engine Applications
引擎应用程序是独立的程序llow 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, seeSupported and Compatible Compilers.
Fortran Matrix APIfunctions. However, the
mxGetProperty
andmxSetProperty
functions are not supported for standalone applications.Fortran Engine Library functions. For more information, seeMATLAB Engine APIs for C and Fortran.
To build the application, call the
mex
command with the-client engine
option.
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: