Hi guys,
I have created a plot and am reading two values. To show graphically which values I am taking, I would like to create a vertical line at the x-value. Is there a simple function for this?
Thanks a lot!

 Respuesta aceptada

Star Strider
Star Strider el 4 de En. de 2023

0 votos

The xline function will plot a vertical line between the limits of the y-axis at the chosen x-value. To plot a vertical line only to the value you want (or between two specific y-values), the approach in Trying to plot a vertical line that stops at the intersection of a curved line in Matlab. works.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de En. de 2023

Respondida:

el 4 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by