When clicking the center or right mouse buttons multiple times very quickly, the second and third results for the 'button' output is incorrectly given as 1 (left mouse click).
Running the following code and click the right button rapidly on the axes.
[x,y,button] = ginput(3)
The 'button' output has many 1's registered. Why does this happen?
Best Answer