I want the right coding for ploting a horizontal line with sin wave

2 ビュー (過去 30 日間)
john m
john m 2021 年 3 月 21 日
編集済み: Sergey Kasyanov 2021 年 3 月 21 日
Pl I want the code of plotting horizontal line with sin wave in the same figure
  3 件のコメント
john m
john m 2021 年 3 月 21 日
I know how to plot sin but I could put the horizontal line with it I don’t know how to code it
dpb
dpb 2021 年 3 月 21 日
編集済み: dpb 2021 年 3 月 21 日
Perhaps it's hold you may be unaware of????
Again, "show your work!"

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

回答 (1 件)

Sergey Kasyanov
Sergey Kasyanov 2021 年 3 月 21 日
編集済み: Sergey Kasyanov 2021 年 3 月 21 日
Hello!
hold on
plot([x1,x2], [y,y])
Line starts in [x1, y] point and ends in [x2, y] point.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by