File Exchange

image thumbnail

save all variables except what the user specifies

version 1.1.0.0 (2.02 KB) by ioxv.4623
Save all workspace variables to harddisk except what the user specifies.

1 Download

Updated 13 May 2009

View License

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 (2020). 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 .

Comments and Ratings (2)

Mark

Would prefer if a warning is issued when no action is being taken. Also with the default action being 'save all variables by default', I expected that
savex(filename);
would automatically save the workspace to filename but this is not the case. Could you get this simply to redirect to
save filename;
when no variables are specified?

Updates

1.1.0.0

Implemented changes suggested by Darren Rowland (05 May 2009)

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux