Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个情节:
t = 1:0.001:10; plot(t,t);
现在我想知道我点击了新情节的哪一点。这可能吗?
我知道有get(0,'PointerLocation');方法,但这给了我绝对的屏幕坐标。
get(0,'PointerLocation');
该功能[x,y] = ginput(n)(请参见此处)可能适合您的需求。
[x,y] = ginput(n)