function point_to_object
t=[0:.1:2*pi];

hold on;
set(gcf,'units','points',...
    'WindowButtonDownFcn',@Button_down);


%%Used with gcf to get the current point of the mouse
%%'WindowButtonDownFcn','get(gcf,''CurrentPoint'')');

a=plot(t,sin(t));
b=plot(t,cos(t));

p=flipud(get(gca,'children'));
p

function [currentobject]=Button_down(obj,evendata)
currentobject=get(gcf,'CurrentObject')