selecting value using ginput

5 次查看(过去 30 天)
Lalit Patil
Lalit Patil 2013-1-3
data = dlmread('value.txt');
plot3(data(:,1),data(:,2),data(:,3),'r.')
axis off
[x,y,z] = ginput(2)
ginput gives value in command window. I want that value above cursor on image when i select point. So, how to do..?

回答(1 个)

Walter Roberson
Walter Roberson 2013-1-3
  5 个评论
Lalit Patil
Lalit Patil 2013-1-4
yes, datacursormode() works.. Now, i want to display that value in command window which i select on image..
Walter Roberson
Walter Roberson 2013-1-4
Add an axes or lineseries ButtonDownFcn callback (if you add it to axes, be sure to set() 'Hittest', 'off' on all the lines in the axes)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Data Exploration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by