Problem with function waitforbuttonpress

조회 수: 2 (최근 30일)
M Min
M Min 2017년 4월 23일
댓글: Nikhil Sreekumar 2017년 4월 26일
Hi,
I wrote a code which includes a function 'waitforbuttonpress'. The problem is sometimes (not always), it shows me an error code
waitforbuttonpress exit because target figure has been deleted
How do I fix this issue?
  댓글 수: 1
Nikhil Sreekumar
Nikhil Sreekumar 2017년 4월 26일
Hi Min,
Can you please check if the figure corresponding to the callback exist at the time the error comes? This usually happens when the callback is made and the figure corresponding to it was deleted somehow before that.
Thanks
Nikhil

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 대화형 방식 컨트롤과 콜백에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!