Be the first to rate this file! 25 downloads (last 30 days) File Size: 1.59 KB File ID: #25339

Clear All But

by Roland Pfister

 

16 Sep 2009

Code covered by BSD License  

Clear the workspace while keeping some of your variables.

Download Now | Watch this File

File Information
Description

Clear All But is an alternative version of David Yang's KEEP that I didn't know when doing this one.

The workspace is cleared as if the 'clear all' command was used but it is possible to keep some of your most beloved variables.

MATLAB release MATLAB 7.8 (R2009a)
Zip File Content  
Other Files clear_all_but.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
17 Sep 2009 Jos (10584)

Besides the existence of various KEEP functions, more recent versions of ML also know CLEARVARS, making this submission rather superfluous ...

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
tool Roland Pfister 16 Sep 2009 11:47:24
clear variables Roland Pfister 16 Sep 2009 11:47:24
keep variables Roland Pfister 16 Sep 2009 11:47:24
workspace Roland Pfister 16 Sep 2009 11:47:24
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com