How can I obtain the coordinates(x,y) from my plot?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have a written a program which utimately plots a graph for me. I wish to obtain the x and y coordinates of desired points on my graph. How can I do this?
0 comentarios
Respuestas (1)
Honglei Chen
el 28 de Jun. de 2012
Editada: Honglei Chen
el 28 de Jun. de 2012
You can try to get the handle of the plotted object and then get XData and YData out of it. Here is an example
h = plot(1:10)
get(h,'XData')
get(h,'YData')
In your case, you may need to go down the hg tree to find the object you need.
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!