How to clear plot in Matlab GUI If you want to clear curve, bars, surfaces or whatever you plotted, then get the handle of the plot and delete it. figure x = -10:10; y = x.^2; h1 = plot(x,x.^2,'rx-'); grid on; hold on; h2 = plot(x,x.^3,'bo-'); delete(h1) Matlab 2021.07.27