| MATLAB Application Program Interface | Search  Help Desk |
| matOpen | Examples |
Fortran Syntax
integer*4 function matOpen(filename, mode) integer*4 mfp character*(*) filename, mode
Arguments
filename
mode
mfp
Description
This routine allows you to open MAT-files for reading and writing.matOpen opens the named file and returns a file handle, or 0 if the open fails. Legal values for mode are:Examples
Seematdemo1.f and matdemo2.f in the eng_mat subdirectory of the examples directory for sample programs that illustrate how to use the MATLAB MAT-file routines in a Fortran program.