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

    %% Clear Specific Variables by Name  
% Using regular expressions, clear those variables with names that begin
% with |Mon|, |Tue|, or |Wed|.   

clear -regexp ^Mon ^Tue ^Wed;