필터 지우기
필터 지우기

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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by