Fortran with MATLAB
If you write Fortran programs, you can use this code to work with MATLAB data using the Fortran 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, see Call MATLAB from Fortran.
To create MATLAB functions that can access Fortran subroutines from MATLAB, use the Fortran MEX API. For more information, see Write Fortran Functions Callable from MATLAB (MEX 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 — see Write Fortran Programs to Read MAT-File Data.
- Write Fortran Functions Callable from MATLAB (MEX Files)
Write Fortran subroutines that can be called from MATLAB
- Call MATLAB from Fortran
Write Fortran programs that work with MATLAB
- Write Fortran Programs to Read MAT-File Data
Read and write MATLAB data from Fortran programs
- Fortran Matrix API
Use the Fortran Matrix API to create Fortran programs that work with MATLAB data