I want to delete some variables that I have declared in command window in matlab, I tried clear all but it didn't work. I typed the following in the command window, e.g.
a = 10;
str = 'a';
clear all
Matlab doesn't delete them, why? Is there any function that can do this for me?