how to add a label to a specific point on a fplot

56 vues (au cours des 30 derniers jours)
Fiachra Heeney
Fiachra Heeney le 19 Fév 2020
I have the graph fplot(M_G) shown below.
how do I label the point where the y-axis = 0. The actual x-value at y = 0 is 0.5607 but i do not know how to label it
  1 commentaire
madhan ravi
madhan ravi le 19 Fév 2020
Maybe you’re looking for text()?

Connectez-vous pour commenter.

Réponse acceptée

Adam Danz
Adam Danz le 19 Fév 2020
This command will add a text label with a leftward arrow pointing to the coordinates
text(0.5607, 0, '\leftarrow My Favorite Point'))
or maybe you want a cross hairs at that point
xline(0.5607)
yline(0)
or maybe a simple marker that is defined in the legend
hold on
plot(0.5607, 0, 'r*', 'displayName', 'My Favorite Point')
legend()

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots 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