Add specific numbers to a plot

5 visualizaciones (últimos 30 días)
Ivan Mich
Ivan Mich el 31 de En. de 2021
Comentada: Ivan Mich el 31 de En. de 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?

Respuesta aceptada

KSSV
KSSV el 31 de En. de 2021
Read about the function text.
  3 comentarios
Walter Roberson
Walter Roberson el 31 de En. de 2021
text(3, 8, sprintf('A=%g', A))
Ivan Mich
Ivan Mich el 31 de En. de 2021
Thank you !!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by