RMVAR: MEX function to delete variables in a MAT file

This function deletes variables from a MAT file without loading the data onto Matlab.

You are now following this Submission

rmvar(MATFILE,VARNAME1,VARNAME2,...) deletes the listed variables (VARNAME1, VARNAME2, etc.) from the MAT-file specified by the string MATFILE.

rmvar(MATFILE,{VARNAME1,VARNAME2,...}) is an alternate way to call, specifying the variable names in a cell array.

The function is implementd as a MEX function and the accompanied C++ source file must be compiled first by

mex rmvar.cpp

See mex documentation on how to configure the MEX compiler function.

Cite As

Kesh Ikuma (2026). RMVAR: MEX function to delete variables in a MAT file (https://uk.mathworks.com/matlabcentral/fileexchange/62101-rmvar-mex-function-to-delete-variables-in-a-mat-file), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0