How to add string on x-axis and line starting from some point?

Hi guys,
In my figure I want to highlight a value on the x-axis using string and the corrispondent numerical value ("tau_1 = 66") and then I want to draw a line parallel to the vertical axis through that point.
I would like to achieve something like in the figures below:
Can you help me?

 Respuesta aceptada

KSSV
KSSV el 10 de Mzo. de 2022
You can show up the string using text. Read about this function.
You can draw line using plot.

2 comentarios

Is possible with text to add string outsides figure box as represented in my image example?
Yes it is....
plot(rand(1,10))
text(2.5,0.0,'You see I am here')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Preguntada:

el 10 de Mzo. de 2022

Comentada:

el 10 de Mzo. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by