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
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!