Fortran with MATLAB - MATLAB & Simulink (original) (raw)
Main Content
Write Fortran subroutines that work 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, seeWrite 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.
Categories
- 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
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
Belgium (English)
Denmark (English)
Deutschland (Deutsch)
España (Español)
Finland (English)
France (Français)
Ireland (English)
Italia (Italiano)
Luxembourg (English)
Netherlands (English)
Norway (English)
Österreich (Deutsch)
Portugal (English)
Sweden (English)
Switzerland
United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)