Matlab: convert global coordinates to figure coordinates
Posted
by noam
on Stack Overflow
See other posts from Stack Overflow
or by noam
Published on 2010-05-04T22:41:48Z
Indexed on
2010/05/04
23:58 UTC
Read the original article
Hit count: 615
If I get coordinates via
coords = get(0,'PointerLocation');
How can I convert them into points gotten via ginput
?
i.e, I would like to get the same values from
coords = get(0,'PointerLocation');
coords=someConversion(coords);
As I would have gotten by calling
coords=ginput(1);
And clicking inside the figure in the same spot as the mouse was in the previous bit of code.
© Stack Overflow or respective owner