Aufruf von MATLAB aus Fortran heraus
Bei Engine-Anwendungen handelt es sich um eigenständig ausführbare Programme, mit denen Sie MATLAB® aus Ihren eigenen Fortran-Programmen heraus aufrufen können (unter Verwendung von MATLAB als Berechnungskern). Rufen Sie zur Erstellung einer Engine-Anwendung die Funktion mex
auf.
Für Engine-Anwendungen ist eine installierte Version von MATLAB erforderlich. Sie können die MATLAB-Engine nicht auf einem Rechner ausführen, auf dem sich nur die MATLAB-Runtime befindet.
Funktionen der Fortran-Engine-API
engOpen | Start MATLAB engine session |
engClose | Quit MATLAB engine session |
engEvalString | Evaluate expression in string |
engGetVariable | Copy variable from MATLAB engine workspace |
engPutVariable | Put variable into MATLAB engine workspace |
engOutputBuffer | Specify buffer for MATLAB output |
Themen
- Write Fortran Engine Applications
What to do to start building Fortran engine applications.
- Call MATLAB Functions from Fortran Applications
Create a Fortran engine application
fengdemo.F
. - Build and Run Fortran Engine Applications on Windows
This example shows how to build and run the Fortran example
fengdemo.F
on Windows® platforms. - Build and Run Fortran Engine Applications on Linux
This example shows how to build and run the
fengdemo.F
example on Linux® platforms. - Build and Run Fortran Engine Applications on macOS
This example shows how to build and run the example
fengdemo.F
from the macOS Terminal Window.