- Surely you can you plot a sine wave?
- Can you plot a horizontal line? Hint, either use plot, or use yline.
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 个评论
回答(1 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!