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