how to display text at specific location in graph?

1 vue (au cours des 30 derniers jours)
msahar
msahar le 14 Mai 2014
Commenté : msahar le 14 Mai 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

Réponse acceptée

Walter Roberson
Walter Roberson le 14 Mai 2014
text(x, y, sprintf('(%f,%f)', x, y))

Plus de réponses (0)

Catégories

En savoir plus sur Data Exploration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by