MATLAB Answers

how to display text at specific location in graph?

23 views (last 30 days)
msahar
msahar on 14 May 2014
Commented: msahar on 14 May 2014
two lines are intersecting in graph below. I know the value at the intersection point. so how I plot these line so that the value of intersection appear automatically in the graph. I mean by using text() or ginput() or using some similar commands. for example at x=2 and y=27, how can I show in this format (2,27). (in graph I manualy put bracket and wrote value in it using paint
. Thank you

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 14 May 2014
text(x, y, sprintf('(%f,%f)', x, y))

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.