Matlab gui WindowButtonMotionFcn crashes when called too often?
问题 I've set WindowButtonMotionFcn to my callback which plots three plots, with the data depending on mouse position. However this seems to be too much for MATLAB to handle, because after moving my mouse around a bit, the GUI stops responding. I use this code (copied parts from someone): set(handles.figure1, 'windowbuttonmotionfcn', @hover_Callback); function hover_Callback(hObject, handles, eventdata) inside = false; pos = get(handles.axes1, 'currentpoint'); xlim = get(handles.axes1, 'XLim');