Get a point from a graph
Afficher commentaires plus anciens
Hie guys, I have done a GUI to plot a graph. Now i would like to get the calue from the graph. Lets say i plot(x,y). I would like to get the value out, for example when x=4, what is the value of y. I know there is a datacursormode, but it only show me the value in the graph. In this case, i would like to get the value in the command window.
Thanks Ean
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 15 Fév 2011
0 votes
You can use a custom datacursormode callback that includes display() in its code.
1 commentaire
Ean Soo
le 16 Fév 2011
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!