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

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

댓글을 달려면 로그인하십시오.

카테고리

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

태그

질문:

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