External Interfaces/API Reference | ![]() ![]() |
C Syntax
#include "mat.h" MATFile *matOpen(const char *filename, const char *mode);
Arguments
filename
Name of file to open.
mfp
mode
mode
are:Description
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.
Example
See matcreat.c
and matdgns.c
in the eng_mat
subdirectory of the examples
directory for sample programs that illustrate how to use the MATLAB MAT-file routines in a C program.
![]() | matGetString (Obsolete) | matPutArray | ![]() |