| MATLAB Application Program Interface Reference | Help Desk |
matOpen
Opens a MAT-file
#include "mat.h" MATFile *matOpen(const char *filename, const char *mode);
filename
mfpPointer to MAT-file information.
mode
This routine allows you to open MAT-files for reading and writing.
matOpen opens the named file and returns a file handle, or NULL if the open fails. Legal values for mode arematdemo.c in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to use the MATLAB MAT-file routines in a C program.