# matClose

## Purpose

Closes MAT-files.

## C Synopsis

    #include "mat.h"
    int matClose(fp)
      MATFile *fp;

## Fortran Synopsis

    integer*4 function matClose(fp)
    integer*4 fp

## Arguments

`fp`
  MAT-file handle

## Description

`matClose` closes the MAT-file associated with `fp`. It returns `EOF` for a write error and zero if successful.

(c) Copyright 1994 by The MathWorks, Inc.