Plot a complex sinusoidal function consisting of the sum of 5 sine waves

7 次查看(过去 30 天)
compute and plot a complex sinusoidal function consisting of the sum of 5 sine waves with equal amplitudes but whose frequencies are 1,3,5,10 and 20, again for t varying from 0 to 2*pie

回答(1 个)

Star Strider
Star Strider 2017-12-11
Start with:
t = linspace(0, 2*pi);
frq = [1 3 5 10 20];
then compute the sine of this matrix:
arg = frq' * t;
then sum it and plot it.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by