Main Content

Fortran withMATLAB

Write Fortran subroutines that work with MATLAB®

If you write Fortran programs, you can use this code to work with MATLAB data using theFortran Matrix API.

  • To launch MATLAB, evaluate MATLAB functions with arguments, and exchange data between MATLAB and Fortran, use the MATLAB Fortran Engine API. For more information, seeCall MATLAB from Fortran.

  • To create MATLAB functions that can access Fortran subroutines from MATLAB, use the Fortran MEX API. For more information, see从MATLAB编写Fortran函数调用(墨西哥人Files).

  • If you must write a custom program to interact with MATLAB data — for example, you want to read data from an external application, but you do not have access to the source code — seeWrite Fortran Programs to Read MAT-File Data.

Categories