get line plot data just by mouse stay on it (without click)
Mostrar comentarios más antiguos
I plot my data and I need to show data (Y) in text box when I put the mouse cursor on it (without click), is there any fuction that help me?
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 28 de En. de 2013
0 votos
datacursormode() with a custom callback function that sends the coordinate to the edit box as well as displaying it on the screen.
1 comentario
Morteza
el 28 de En. de 2013
Jan
el 28 de En. de 2013
0 votos
You can use the WindowsButtonMotion function of the parent figure. There OVEROBJ can check, if the mouse is over the specified axes and the CurrentPoint property of this axes contains the coordinates. Now you need a method to find the nearest (interpolated?) point of your data for the display.
Categorías
Más información sobre Data Exploration en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!