3 sine waves in 1 graph, same frequency different amplitude

조회 수: 7 (최근 30일)
Femi Okome
Femi Okome 2022년 12월 15일
이동: Jan 2022년 12월 15일
im trying to plot 3 sine waves in 1 graph, same frequency different amplitude. they come up separately.
i picture is below on how i would like the sine waves to look like.
thank you
  댓글 수: 1
Femi Okome
Femi Okome 2022년 12월 15일
sorry about my grammer. im on 0 hours sleep. and also thank you very much. this helps a lot.

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

채택된 답변

Jan
Jan 2022년 12월 15일
이동: Jan 2022년 12월 15일
I've replaced your huge 38 MB BMP image by a 48 kB JPEG to improve the speed of loading the thread.
Which problem do you have to write the code? What does this mean: "they come up separately"?
The actual code is simple:
A = [0.2; 0.5; 1.2]; % The different amplitudes
t = linspace(0, 2*pi, 200);
plot(t, A .* sin(t))
grid on
axis tight

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by