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

2 vues (au cours des 30 derniers jours)
john m
john m le 21 Mar 2021
Pl I want the code of plotting horizontal line with sin wave in the same figure
  3 commentaires
john m
john m le 21 Mar 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 le 21 Mar 2021
Modifié(e) : dpb le 21 Mar 2021
Perhaps it's hold you may be unaware of????
Again, "show your work!"

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by