%% Name Variables to Clear and Preserve Variables Using Regular Expressions
% Clear variables with names that start with a and do not end with a.

clearvars a* -except -regexp a$

% Copyright 2015 The MathWorks, Inc.