www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/ClearAllVariablesExceptSpecifiedExample.m

    %% Clear All Variables Except Specified  
% Remove all variables from the workspace except for the variables |C| and |D|.   

% Copyright 2015 The MathWorks, Inc.


%%  
clearvars -except C D