View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
remove varables in MAT file(s)

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

3.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 1.97 KB File ID: #40532 Version: 1.0
image thumbnail

remove varables in MAT file(s)



Want to delete same variables in possibly many MAT files? removevar is for you!

| Watch this File

File Information

removevar removes variable(s) from selected Mat file(s)
removevar selects MAT file(s) matfiles and ask user to select which
variables to delete. If more than one MAT file, matfiles is of cell format. Otherwise, matfiles can be either of char or cell class.
removevar(matfiles) ask user to select which variables in matfiles to delete removevar(matfiles,varargin) deletes variables that matches varargin in matfiles.

Usage Examples:

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
06 Nov 2014 Marshall

Please note that this function doesn't directly remove the file from the .mat file; it instead rewrites every other variable to another .mat file. This will be exceedingly slow for those times in which this method would be most useful--deleting a small variable from a very large .mat file.

Contact us