How to plot a horizontal line on a distance-time plot

How can I plot a horizontal line on a distance-time plot? I want to do one for 1:100 iterations which represent time.

回答 (1 件)

Cris LaPierre
Cris LaPierre 2021 年 3 月 8 日

0 投票

Use yline.

6 件のコメント

Neve Lett
Neve Lett 2021 年 3 月 8 日
I've tried to use yline would you mind giving me an example of how to use it to plot correctly?
Thank you
Cris LaPierre
Cris LaPierre 2021 年 3 月 8 日
Did you look at the linked page? There is syntax help as well as several examples.
Neve Lett
Neve Lett 2021 年 3 月 8 日
I have yes thank you!
How do you change the spacing between the lines?
Cris LaPierre
Cris LaPierre 2021 年 3 月 8 日
The spacing between what lines?
Neve Lett
Neve Lett 2021 年 3 月 8 日
the horizontal lines
Cris LaPierre
Cris LaPierre 2021 年 3 月 8 日
yline(yvalue)
^^^^^^ Change the yvalue

サインインしてコメントする。

カテゴリ

タグ

質問済み:

2021 年 3 月 8 日

コメント済み:

2021 年 3 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by