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

조회 수: 90 (최근 30일)
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?

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

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


Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by