I need to create a button UI that undo the graph which I plotted without using GUIDE
Mostrar comentarios más antiguos
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
Respuestas (1)
Rik
el 29 de Jun. de 2020
0 votos
You will have to store the handle to your last plotted graph and either delete it, or set the Visibility to 'off'.
2 comentarios
KATARI LOKESH
el 29 de Jun. de 2020
Rik
el 29 de Jun. de 2020
h_line=plot(1:10,rand(1,10));
%% option 1:
set(h_line,'Visible','off')
%% option 2:
delete(h_line)
Categorías
Más información sobre Graphics Objects en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!