Vertical line in plots

14 ビュー (過去 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 Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by