clear all variables except one matlab code example Example: clear all but matlab clearvars -except NAME