필터 지우기
필터 지우기

Vertical line in plots

조회 수: 9 (최근 30일)
Max1234
Max1234 2023년 1월 4일
답변: Star Strider 2023년 1월 4일
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일
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개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by