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

조회 수: 3 (최근 30일)
Shamala Nagarajoo
Shamala Nagarajoo 2017년 12월 11일
답변: Star Strider 2017년 12월 11일
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.

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by