matlab clear the command window code example
Example: how to clear matlab command window
clc //clear command window
clear //clears all variables from current workspace
close all //closes all figures
clc //clear command window
clear //clears all variables from current workspace
close all //closes all figures