Clears comamand window, closes all figures and clears all data Requires KEEP.M in your path (available from Mathworks file exchange as KEEP3.M) USAGE: fr <variables> <figures> <variables> is a list of variables to be retained (optional) <figures> is a list of figures to be retained (optional) EXAMPLE: fr % Clears everything fr a 1 b 4 % Keeps variables A and B and figures 1 and 4 fr ('a','1','b','4') % Same as above, in a parameter list form fr ('a',1,'b',4,gcf) % Note that fr also accepts arguments of number datatype % The number denotes figure handle %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% This file displays properly with Tab-size = 4 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%