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

1 view (last 30 days)
Pl I want the code of plotting horizontal line with sin wave in the same figure
  3 Comments
dpb
dpb on 21 Mar 2021
Edited: dpb on 21 Mar 2021
Perhaps it's hold you may be unaware of????
Again, "show your work!"

Sign in to comment.

Answers (1)

Sergey Kasyanov
Sergey Kasyanov on 21 Mar 2021
Edited: Sergey Kasyanov on 21 Mar 2021
Hello!
hold on
plot([x1,x2], [y,y])
Line starts in [x1, y] point and ends in [x2, y] point.

Tags

Community Treasure Hunt

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

Start Hunting!