- 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
조회 수: 1 (최근 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!