Problem with function waitforbuttonpress
显示 更早的评论
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
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 个)
类别
在 帮助中心 和 File Exchange 中查找有关 대화형 방식 컨트롤과 콜백 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!