필터 지우기
필터 지우기

Plotting straight line on graph

조회 수: 18 (최근 30일)
Zane  Wilkinson
Zane Wilkinson 2015년 8월 5일
답변: Vedangi Gholap 2023년 10월 16일
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일
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일
plot([first_x last_x], 40)
  댓글 수: 2
Simon
Simon 2023년 10월 15일
this does not work
Matt J
Matt J 2023년 10월 15일
plot([first_x last_x], [40,40])

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


Vedangi  Gholap
Vedangi Gholap 2023년 10월 16일
plot([0 3], [40,40])

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by