F90_CALLS_MATLAB is a directory of FORTRAN90 programs which demonstrate how a FORTRAN90 program can interact with MATLAB.
In these examples, the interaction is done through the SYSTEM command, which allows a FORTRAN90 program to issue a command to the operating system, and to receive a result flag indicating the successful completion or failure of that command.
The SYSTEM command is not a standard or intrinsic routine defined by the FORTRAN standard. However, it is often available to FORTRAN programmers on UNIX systems. In particular, the GNU G95 and IBM XLF compilers include this routine.
Data can be passed between MATLAB and FORTRAN using text files.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
C_CALLS_F77, C programs which illustrate a C program calling a FORTRAN77 subroutine.
C_CALLS_F90, C programs which illustrate a C program calling a FORTRAN90 subroutine.
C++_CALLS_F77, C++ programs which illustrate how a C++ main program can call a FORTRAN77 subroutine.
C++_CALLS_F90, C++ programs which illustrate how a C++ main program can call a FORTRAN90 subroutine.
F77_CALLS_C, FORTRAN77 programs which illustrates how a FORTRAN77 program can call a C function.
F77_CALLS_C++, FORTRAN77 programs which illustrates how a FORTRAN77 program can call a C++ function.
F90_CALLS_C, FORTRAN90 programs which illustrates how a FORTRAN90 program can call a C function.
F90_CALLS_C++, FORTRAN90 programs which illustrates how a FORTRAN90 program can call a C++ function.
MATLAB_CALLS_C, MATLAB programs which illustrate how C functions can be written, compiled, and called from MATLAB using the MEX facility;
MATLAB_CALLS_F77, MATLAB programs which illustrate how FORTRAN77 functions can be written, compiled, and called from MATLAB using MATLAB's mex facility;
MIXED, FORTRAN90 programs which call a function written in another programming language.
MATRIX_MULTIPLY shows how a FORTRAN90 program can cooperate with MATLAB. The FORTRAN90 program generates two matrices A and B, writes them to files, and invokes MATLAB with a particular M-file. The M-file reads the matrices from the files, computes the product C and writes it to a file. The FORTRAN90 program resumes execution, reading the C file and reporting the result.
You can go up one level to the FORTRAN90 source codes.