From: Eli on
Hi

I finally got the ButtonDownFcn (of an image) to work, now I'm wondering how do I get the information regarding the user's click - location etc.

Thanks
Rachel
From: us on
"Eli " <racheli.magid(a)gmail.com> wrote in message <htilfu$il6$1(a)fred.mathworks.com>...
> Hi
>
> I finally got the ButtonDownFcn (of an image) to work, now I'm wondering how do I get the information regarding the user's click - location etc.
>
> Thanks
> Rachel

one of the solutions

ih=image(rand([3,4,3]));
set(ih,'buttondownfcn','disp(get(gca,''currentpoint''));');
% now, click...

us