octave clear figure code example
Example: octave clear figure
clf; % Clears the current figure
cla; % Clears the current axis
shg % Brings the current figure to the top of the window stack
delete (handle);% Deletes the referenced graphics object
close % Closes the figure window