Rank: 68056 based on 0 downloads (last 30 days) and 0 file submitted
photo

Ray Ducharme

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Ray View all
Updated File Comments Rating
24 Feb 2010 keep KEEP is complementary to the "clear" command: it keeps the supplied variables and deletes the rest. Author: David Yang

24 Feb 2010 keep KEEP is complementary to the "clear" command: it keeps the supplied variables and deletes the rest. Author: David Yang

FYI, users with newer version can now use "clearvars -except". To 'keep' old habits...

function keep(varargin)
evalin('caller',['clearvars -except ' char(varargin)]);
end

call...
keep 'x y'

Thanks David for the original function!

Contact us