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

    %% Clear Set of Variables  
% Create a cell array, |vars|, that contains the names of variables to
% clear. Then, clear those variables.   

vars = {'v1','v2','time'};
clear(vars{:})