[讨论] 如何同时读取figure的座标和Z值

楼主: mlbgary1994 (bluesky)   2015-07-30 11:24:43
最近在处理卫星影像,已经找到可以读取鼠标座标的function
set (gcf, 'WindowButtonMotionFcn', @mouseMove);
1: function mouseMove (object, eventdata)
2: C = floor( get(gca, 'CurrentPoint'));
3: title(gca, ['(X,Y) = (', num2str(C(1,1)), ', ',num2str(C(1,2)), ')']);
但我想要显示座标时,同时显示该座标点的Z值
不知有什么方法可以达到呢?

Links booklink

Contact Us: admin [ a t ] ucptt.com