[討論] 如何同時讀取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