Reputation: 11180
i have a plot:
t = 1:0.001:10;
plot(t,t);
now i wish to know which point i have clicked on the new plot. Is this possible?
I know there is the get(0,'PointerLocation');
method, but this gives me the absolute screen coordinates.
Upvotes: 1
Views: 252
Reputation: 56
The function [x,y] = ginput(n)
(see here) probably fits your needs.
Upvotes: 3