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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by