getting the coordinate on an image

Hi,
I want to get the coordination (x,y) on an image when clicked. I use the
imshow(I);
to display the image.
is this possible ? if yes what code/function I should use?

Answers (1)

KSSV
KSSV on 20 Aug 2017
Read about getpts and ginput

2 Comments

thank you, I was able to do it with the getpts
Thank you is accepting the answer...:)

Sign in to comment.

Asked:

on 20 Aug 2017

Commented:

on 20 Aug 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!