save all variables except what the user specifies

Save all workspace variables to harddisk except what the user specifies.

You are now following this Submission

This function tries to do the opposite of what MATLAB's built-in SAVE function does: with SAVE, variables are written to a binary file if they are included in the input arguments. SAVEX, on the other hand saves all variables by default, except those which are specified by the user. This can be achieved through including either the name of the variable as an input argument to SAVEX, or by using one or more regular expressions as input argument.

see:
>> help savex
for three simple examples.

Cite As

ioxv.4623 (2026). save all variables except what the user specifies (https://www.mathworks.com/matlabcentral/fileexchange/23939-save-all-variables-except-what-the-user-specifies), 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.1.0.0

Implemented changes suggested by Darren Rowland (05 May 2009)

1.0.0.0