I have the following scatter plot in Matlab:
x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
scatter(x,y)
The user should now be able to click at a circle in the scatter plot. How can I identify at which circle the user has clicked (i.e. at which (x,y) value)?