How to reset axes plot upon pressing run button within GUI
Show older comments
I have a very simple GUI which plots a graph depending on users input into my gui axes.

Problem is that everytime I press calcuate instead of clearing the axes and plotting the new data. It simply plots on top

as you can see it adds another line on top.
I've tired
cla reset
and
delete (plot)
neiter of which work, any suggestions?
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!