F77_CALLS_MATLAB is a FORTRAN77 program which can interact with MATLAB.
In these examples, the interaction is done through the SYSTEM command, which allows a FORTRAN77 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 GFORTRAN 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.
F77_CALLS_MATLAB is available in a FORTRAN77 version and a FORTRAN90 version.
C_CALLS_F77, C programs which illustrate a C program calling a FORTRAN77 subroutine.
C++_CALLS_F77, C++ programs which illustrate how a C++ main program can call a FORTRAN77 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.
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;
MATRIX_MULTIPLY shows how a FORTRAN77 program can cooperate with MATLAB. The FORTRAN77 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 FORTRAN77 program resumes execution, reading the C file and reporting the result.
You can go up one level to the FORTRAN77 source codes.