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

52 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

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

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by