Simplify this question about sine waves

Can anyone simplify this question?
I'm not able to understand how to get values of s1. Is there any formula to find it? Please help.

1 件のコメント

Steven Lord
Steven Lord 2015 年 7 月 31 日
This looks like a homework question. If it is, you should probably ask your professor or teaching assistant for help.
I will give one hint: this documentation page includes a function that will be of use to you.

サインインしてコメントする。

 採用された回答

Geoff Hayes
Geoff Hayes 2015 年 8 月 2 日

0 投票

Daniel - the question description describes the elements of s1 as the values of the sine function when it is given equally spaced arguments that start at zero and extend through n1 periods of the sine. The caveat is that full periods are asked for so that the first element and last element of s1 are zero.
Now think of each period as simply one second of data where the frequency of the sine function is one. To get the equally spaced inputs across n1 periods (or seconds), use linspace as
n1 = 2;
pts = 10;
t = linspace(0,n1,pts);
The array t will be used as your input (along with the amplitude and frequency) to the sine function which is given by its well-known equation (left for you to determine).

1 件のコメント

Daniel Jonnakuti
Daniel Jonnakuti 2015 年 8 月 3 日
thanks a ton.. this was helpful

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by