selecting value using ginput
4 次查看(过去 30 天)
显示 更早的评论
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..?
0 个评论
回答(1 个)
Walter Roberson
2013-1-3
5 个评论
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 Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!