Often I add an object to a plot and see that I goofed up in some way. This is a very quick way to undo such mistakes.From the help:UNPLOT Delete the most recently created graphics object(s). UNPLOT removes the most recently created line, surface, patch, or text object created in the current axes. UNPLOT(N) removes the N most recent. UNPLOT SET takes a snapshot of the objects currently in the axes. UNPLOT REVERT removes any objects drawn since the last SET.
Toby Driscoll (2021). unplot (https://www.mathworks.com/matlabcentral/fileexchange/2831-unplot), MATLAB Central File Exchange. Retrieved .
This was what I needed
Works just fine.
I still don't understand why this isn't built in. Very useful tool!
This needs to be a built in feature! A+
Two thumbs way up! This function has changed my life and my entire MATLAB experience! I could never go back to a world without UNPLOT!!! Riveting! Moving! Truely amazing!!!
Brilliant and addictive! Needs to be incorporated in future MATLAB releases as a standard tool.
Excellent!! It saves me a lot of time that I used to spend writing temporary m-files to plot temporary variables.
Outstanding! Exactly the tool I needed to remove data plots after comparing them to a baseline plot. Allows subsequent comparisons without having to replot the baseline data each time.
Excellent time saver. Once tried, you won't be able to work without it!
A very well performed and useful little tool.
Great! Saves a lot of mouse manipulation and zooming.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!