Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Help with HW question regarding Sine waves

1 回表示 (過去 30 日間)
JM
JM 2018 年 1 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I may be greatly overthinking this, but I want to make sure since I am new to Matlab.
The question requires me to create a sine-like wave from 1 radian to 30 radians, with 1 radian increments.
I have programmed it as follows
x = (1:1:30)
y = sin(x)
plot (x,y)
Is this the correct approach? Thank you.

回答 (1 件)

Star Strider
Star Strider 2018 年 1 月 26 日
It looks correct to me.
  1 件のコメント
Rik
Rik 2018 年 1 月 26 日
You could also have a look at the documentation. For most functions it contains several examples. The documentation for sin explicitly states that it uses radians.

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by