フィルターのクリア

I need to create a button UI that undo the graph which I plotted without using GUIDE

1 回表示 (過去 30 日間)
KATARI LOKESH
KATARI LOKESH 2020 年 6 月 29 日
コメント済み: Rik 2020 年 6 月 29 日
Hello Experts,
I am working on my own GUI without using GUIDE.
Now I need to create a Undo button which undo the graph which i have plotted.
Please help me with this
Thanks
Lokesh Katari

回答 (1 件)

Rik
Rik 2020 年 6 月 29 日
You will have to store the handle to your last plotted graph and either delete it, or set the Visibility to 'off'.
  2 件のコメント
KATARI LOKESH
KATARI LOKESH 2020 年 6 月 29 日
Hi, thank you so much.
Can you help me with some small code so that i can understand
Thank you
Rik
Rik 2020 年 6 月 29 日
h_line=plot(1:10,rand(1,10));
%% option 1:
set(h_line,'Visible','off')
%% option 2:
delete(h_line)

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by