Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

matDeleteVariable (C and Fortran) - Delete named mxArray from MAT-file

C Syntax

#include "mat.h"
int matDeleteVariable(MATFile *mfp, const char *name);

Fortran Syntax

integer*4 matDeleteVariable(mfp, name)
mwPointer mfp
character*(*) name

Arguments

mfp

Pointer to MAT-file information

name

Name of mxArray to delete

Returns

0 if successful, and nonzero otherwise.

Description

matDeleteVariable deletes the named mxArray from the MAT-file pointed to by mfp.

C Examples

See matcreat.c and matdgns.c in the matlabroot/extern/examples/eng_mat folder for sample programs that illustrate how to use the MAT-file routines in a C program.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS