필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Help with HW question regarding Sine waves

조회 수: 3 (최근 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