clear t matlab code example
Example 1: how to clear matlab command window
clc //clear command window
clear //clears all variables from current workspace
close all //closes all figures
Example 2: matlab clear all
clear % Clears all variable data
clc % Clears the command line window