フィルターのクリア

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 Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by