Appeler MATLAB à partir de Fortran
Les applications Engine sont des programmes autonomes qui vous permettent d’appeler MATLAB® depuis vos propres programmes Fortran en utilisant MATLAB comme moteur de calcul. Pour créer une application Engine, appelez la fonction mex.
Les applications Engine nécessitent une version installée de MATLAB. Vous ne pouvez pas exécuter MATLAB Engine sur un ordinateur seulement équipé de MATLAB Runtime.
Fonctions de 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 |
Rubriques
- 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.Fon Windows® platforms. - Build and Run Fortran Engine Applications on Linux
This example shows how to build and run the
fengdemo.Fexample on Linux® platforms. - Build and Run Fortran Engine Applications on macOS
This example shows how to build and run the example
fengdemo.Ffrom the macOS Terminal Window.