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

2 Ansichten (letzte 30 Tage)
john m
john m am 21 Mär. 2021
Bearbeitet: Sergey Kasyanov am 21 Mär. 2021
Pl I want the code of plotting horizontal line with sin wave in the same figure
  3 Kommentare
john m
john m am 21 Mär. 2021
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 am 21 Mär. 2021
Bearbeitet: dpb am 21 Mär. 2021
Perhaps it's hold you may be unaware of????
Again, "show your work!"

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Sergey Kasyanov
Sergey Kasyanov am 21 Mär. 2021
Bearbeitet: Sergey Kasyanov am 21 Mär. 2021
Hello!
hold on
plot([x1,x2], [y,y])
Line starts in [x1, y] point and ends in [x2, y] point.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by