How to reset axes plot upon pressing run button within GUI
6 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Monica Roberts
2022 年 5 月 6 日
You could call cla with the uiaxes as the input:
cla(app.UIAxes) % Or whatever your uiaxes handle is called
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!