selecting value using ginput

5 visualizaciones (últimos 30 días)
Lalit Patil
Lalit Patil el 3 de En. de 2013
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..?

Respuestas (1)

Walter Roberson
Walter Roberson el 3 de En. de 2013
  5 comentarios
Lalit Patil
Lalit Patil el 4 de En. de 2013
yes, datacursormode() works.. Now, i want to display that value in command window which i select on image..
Walter Roberson
Walter Roberson el 4 de En. de 2013
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)

Iniciar sesión para comentar.

Categorías

Más información sobre Data Exploration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by