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

조회 수: 10 (최근 30일)
john m
john m 2021년 3월 21일
편집: Sergey Kasyanov 2021년 3월 21일
Pl I want the code of plotting horizontal line with sin wave in the same figure
  댓글 수: 3
john m
john m 2021년 3월 21일
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 2021년 3월 21일
편집: dpb 2021년 3월 21일
Perhaps it's hold you may be unaware of????
Again, "show your work!"

댓글을 달려면 로그인하십시오.

답변 (1개)

Sergey Kasyanov
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.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by