フィルターのクリア

3 sine waves in 1 graph, same frequency different amplitude

12 ビュー (過去 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 Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by