How to get the value of 'x' from a figure?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I'm trying to get the value of the x axis from a figure. I am currently using gtext, is there another way?
Cheers
0 comentarios
Respuestas (3)
Azzi Abdelmalek
el 12 de Feb. de 2013
Click on your plot then type in command windows
x=get(gco,'xdata')
0 comentarios
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!