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

48 views (last 30 days)
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?

Accepted Answer

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

Sign in to comment.

More Answers (1)

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

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!