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 Center および File Exchange대화형 방식 컨트롤과 콜백 についてさらに検索

Community Treasure Hunt

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

Start Hunting!