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!

 채택된 답변

Star Strider
Star Strider 2023년 1월 4일

0 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

태그

질문:

2023년 1월 4일

답변:

2023년 1월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by