3 sine waves in 1 graph, same frequency different amplitude
12 ビュー (過去 30 日間)
古いコメントを表示
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1231827/image.jpeg)
採用された回答
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!