Hey easy question but how do i plot the line y=40 in matlab? What is the script i need to write?
Thanks zane :)

 채택된 답변

Simon
Simon 2023년 10월 15일
이동: Matt J 2023년 10월 15일

0 개 추천

yline(40)

댓글 수: 1

Dyuman Joshi
Dyuman Joshi 2023년 10월 15일
Note that yline is available from R2018b onwards.
In case of an older version, use the method described in the other answer.

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

추가 답변 (2개)

Walter Roberson
Walter Roberson 2015년 8월 5일

1 개 추천

plot([first_x last_x], 40)

댓글 수: 2

Simon
Simon 2023년 10월 15일
this does not work
plot([first_x last_x], [40,40])

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

Vedangi  Gholap
Vedangi Gholap 2023년 10월 16일

0 개 추천

plot([0 3], [40,40])

카테고리

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

질문:

2015년 8월 5일

답변:

2023년 10월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by