Clear image in GUI?

3 visualizaciones (últimos 30 días)
Kyle
Kyle el 10 de Jul. de 2011
Comentada: Yibiao el 19 de Feb. de 2015
Hi,
Is there another way to clear image in axes beside using the following code?
cla(handles.im1,'reset')
If i use this, it even clears the ButtonDownFcn of my axes.
Thanks

Respuesta aceptada

Robert Cumming
Robert Cumming el 10 de Jul. de 2011
cla(handles.im1)

Más respuestas (2)

Paulo Silva
Paulo Silva el 10 de Jul. de 2011
Just delete the children of the current axes
delete(get(gca,'Children'))
The buttondownfcn of the axes remains unchanged
  4 comentarios
Kyle
Kyle el 10 de Jul. de 2011
Thanks
It works like the cla(handles.im1)
Yibiao
Yibiao el 19 de Feb. de 2015
It works, thanks!

Iniciar sesión para comentar.


norfaizayu
norfaizayu el 30 de En. de 2012
i cannot run the source code. is it just put the coding?i have 3 axes to be clear in gui. so how can i clear it?
  1 comentario
Walter Roberson
Walter Roberson el 30 de En. de 2012
Sorry, I am having difficulty understanding your question.

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by