How to reset axes plot upon pressing run button within GUI
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Logan Das
am 6 Mai 2022
Kommentiert: Logan Das
am 6 Mai 2022
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?
0 Kommentare
Akzeptierte Antwort
Monica Roberts
am 6 Mai 2022
You could call cla with the uiaxes as the input:
cla(app.UIAxes) % Or whatever your uiaxes handle is called
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!