Code covered by the BSD License  

Highlights from
delvarmat

4.0

4.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 2.92 KB File ID: #162

delvarmat

by Raymond Norris

 

10 Sep 1998 (Updated 12 Dec 2011)

Removes a variable from a MAT-file

| Watch this File

File Information
Description

 delvarmat Delete variable(s) from MAT-file
  STATUS = delvarmat(FILENAME,VARIABLE1,...) deletes the
  variable(s) from the MAT-file.
 
  STATUS = delvarmat(VARIABLE1,...) deletes the variable(s) from
  'matlab.mat'
 
  delvarmat returns 1(failure) if either the MAT-file doesn't exist in
  the current directory or if anyone of the listed variables don't
  exist in the MAT-file. delvarmat returns 0(success) otherwise.
 
  Note: If delvarmat can not find a particular variable in a MAT-file,
  even though it will return an error status, any variables already
  deleted will stay removed from the MAT-file.

Because the File Exchange doesn't allow for MEX-files, the C-code is included here to compile the code

   >> mcc delvarmat.c

Supplied with an accompanying M-file for the HELP entry.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
26 Jun 2003 Yaron Keren

To make it work with latest MATLAB, replace the matDeleteArray API call with matDeleteVariable API call (two places).

Please login to add a comment or rating.
Updates
12 Dec 2011

Minor update.

Tag Activity for this File
Tag Applied By Date/Time
path Raymond Norris 22 Oct 2008 06:33:13
directories Raymond Norris 22 Oct 2008 06:33:13
files Raymond Norris 22 Oct 2008 06:33:13
mexfile Raymond Norris 22 Oct 2008 06:33:13
tools Raymond Norris 22 Oct 2008 06:33:13
variable Raymond Norris 22 Oct 2008 06:33:13
ccode Raymond Norris 22 Oct 2008 06:33:13
utilities Raymond Norris 22 Oct 2008 06:33:13

Contact us at files@mathworks.com