Reset button in Matlab GUI
Mostrar comentarios más antiguos
Hello
I am working with Mat lab GUI and it works. But I need to add a reset button so that that when the user wants to input other parameters, it clear all the input data and figure of the previous result.
Any idea please how to implement this.
Thank you
Matt
Respuesta aceptada
Más respuestas (3)
David Sanchez
el 10 de Mayo de 2013
to reset the plot use:
clf
type
help clf
for all the information you'll need
2 comentarios
Matt
el 10 de Mayo de 2013
Jonathan
el 21 de Ag. de 2013
Hi, I think what you want to do is:
cla(handles.Diagram1,'reset')
If Diagram1 is the tag to the axes object in your gui. I found clf didn't work as expected so changed to cla and upon pushing the reset button in my gui it cleared the figure to be blank.
Sittichai Ouamaimphuet
el 2 de Mzo. de 2022
0 votos
cla(handles.Diagram1,'reset')
Sittichai Ouamaimphuet
el 2 de Mzo. de 2022
0 votos
cla(handles.Diagram1,'reset')
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!