フィルターのクリア

Clear image in GUI?

4 ビュー (過去 30 日間)
Kyle
Kyle 2011 年 7 月 10 日
コメント済み: Yibiao 2015 年 2 月 19 日
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

採用された回答

Robert Cumming
Robert Cumming 2011 年 7 月 10 日
cla(handles.im1)

その他の回答 (2 件)

Paulo Silva
Paulo Silva 2011 年 7 月 10 日
Just delete the children of the current axes
delete(get(gca,'Children'))
The buttondownfcn of the axes remains unchanged
  4 件のコメント
Kyle
Kyle 2011 年 7 月 10 日
Thanks
It works like the cla(handles.im1)
Yibiao
Yibiao 2015 年 2 月 19 日
It works, thanks!

サインインしてコメントする。


norfaizayu
norfaizayu 2012 年 1 月 30 日
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 件のコメント
Walter Roberson
Walter Roberson 2012 年 1 月 30 日
Sorry, I am having difficulty understanding your question.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by