How to display the x and y coordinates of specific points on the plotted graph in matlab??

45 visualizaciones (últimos 30 días)
After plotting a graph with the given values how can we display the x and y coordinates of some points on the graph automatically without placing the cursor there?
Is there any function to enter the points whose coordinates are to be displayed?

Respuesta aceptada

Steven Lord
Steven Lord el 17 de En. de 2019
Do you want to place some text there using the text function?
  1 comentario
Neha Sinha
Neha Sinha el 20 de En. de 2019
I want the specific co-ordinates to be automatically displayed on the plot when the graph is displayed after running the code.

Iniciar sesión para comentar.

Más respuestas (1)

Afshin Aghayan
Afshin Aghayan el 8 de Oct. de 2019
you can use this code for displaying any data in the form of [x, y, f(x,y)] or data with coordinate

Categorías

Más información sobre Line Plots 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