1MAT_CLOSE(3)             BSD Library Functions Manual             MAT_CLOSE(3)
2

NAME

4     Mat_Close — Closes an open MATLAB .mat file
5

SYNOPSIS

7     #include <matio.h>
8
9     int
10     Mat_Close(mat_t *matname);
11

DESCRIPTION

13     The Mat_Close() function closes a MATLAB .mat file opened with Mat_Open()
14     or created with Mat_CreateVer()
15

EXAMPLES

17     #include "matio.h"
18
19     int main(int argc,char **argv)
20     {
21         mat_t *matfp;
22
23         matfp = Mat_Open(argv[1],MAT_ACC_RDONLY);
24         if ( NULL == matfp ) {
25             fprintf(stderr,"Error opening MAT file %s0,argv[1]);
26             return EXIT_FAILURE;
27         }
28
29         Mat_Close(matfp);
30         return EXIT_SUCCESS;
31     }
32
33

SEE ALSO

35     Mat_Open(3), Mat_CreateVer(3),
36
37BSD                             April 21, 2011                             BSD
Impressum