Want to get these values in my code
Show older comments

i need these values in my code ..
when i select the mouse courser on a point . it automatically pass to my code
Accepted Answer
More Answers (1)
Walter Roberson
on 11 May 2015
0 votes
You can use ginput() if you want to wait for the user to click. If you want the user to be able to click as one possible action, then see the documentation for Image Properties and set a ButtonDownFcn callback in which you get() the figure CurrentPoint property to figure out where on the figure you are and deduce your image location from there (I have probably forgotten a better way)
1 Comment
Amir Khan
on 12 May 2015
Categories
Find more on Build Interactive Tools in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!