Azzera filtri
Azzera filtri

Clear image in GUI?

4 visualizzazioni (ultimi 30 giorni)
Kyle
Kyle il 10 Lug 2011
Commentato: Yibiao il 19 Feb 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

Risposta accettata

Robert Cumming
Robert Cumming il 10 Lug 2011
cla(handles.im1)

Più risposte (2)

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

Accedi per commentare.


norfaizayu
norfaizayu il 30 Gen 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 Commento
Walter Roberson
Walter Roberson il 30 Gen 2012
Sorry, I am having difficulty understanding your question.

Accedi per commentare.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by