I need to create a button UI that undo the graph which I plotted without using GUIDE
이전 댓글 표시
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
2020년 6월 29일
0 개 추천
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
2020년 6월 29일
Rik
2020년 6월 29일
h_line=plot(1:10,rand(1,10));
%% option 1:
set(h_line,'Visible','off')
%% option 2:
delete(h_line)
카테고리
도움말 센터 및 File Exchange에서 Graphics Objects에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!