3 sine waves in 1 graph, same frequency different amplitude

6 Ansichten (letzte 30 Tage)
Femi Okome
Femi Okome am 15 Dez. 2022
Verschoben: Jan am 15 Dez. 2022
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 Kommentar
Femi Okome
Femi Okome am 15 Dez. 2022
sorry about my grammer. im on 0 hours sleep. and also thank you very much. this helps a lot.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 15 Dez. 2022
Verschoben: Jan am 15 Dez. 2022
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

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by