Add specific numbers to a plot

6 vues (au cours des 30 derniers jours)
Ivan Mich
Ivan Mich le 31 Jan 2021
Commenté : Ivan Mich le 31 Jan 2021
I have a code that I am calculating some values. I would like to add this values to a spesific point in my plot (I mean I would like to add upper left the folowing: 'A = 5', (to a next row 'B= 10' etc). I think I should use num2str(A) function but I do not know how.
Could you help me?

Réponse acceptée

KSSV
KSSV le 31 Jan 2021
Read about the function text.
  3 commentaires
Walter Roberson
Walter Roberson le 31 Jan 2021
text(3, 8, sprintf('A=%g', A))
Ivan Mich
Ivan Mich le 31 Jan 2021
Thank you !!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dates and Time 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