External Interfaces Reference Previous page   Next Page
matPutVariable

Write mxArrays to MAT-files

Fortran Syntax

Arguments

mfp
   Pointer to MAT-file information.

name
   Name of mxArray to put into MAT-file.

pm
   mxArray pointer.

Description

This routine allows you to put an mxArray into a MAT-file.

matPutVariable writes mxArray pm to the MAT-file mfp. If the mxArray does not exist in the MAT-file, it is appended to the end. If an mxArray with the same name already exists in the file, the existing mxArray is replaced with the new mxArray by rewriting the file. The size of the new mxArray can be different than the existing mxArray.

matPutVariable returns 0 if successful and nonzero if an error occurs.


Previous page  matPutString (Obsolete) matPutVariableAsGlobal Next page

© 1994-2005 The MathWorks, Inc.