how do you use sin in matlab?

조회 수: 28 (최근 30일)
Dwyane  Wade
Dwyane Wade 2011년 8월 14일
like for example I will input sin 30
when I do this I get an error: ??? Undefined function or variable 'sin30'.
sin is a function right? I do not need to put a value for it but why do I still get this error.? help me guys please...

채택된 답변

Yoav Livneh
Yoav Livneh 2011년 8월 14일
Use sin(30).

추가 답변 (1개)

Daniel Shub
Daniel Shub 2011년 8월 14일
You need parentheses. For example:
sin(30)
Although you probably want
sin(30*pi/180)
since sin expects its argument to be in radians.
  댓글 수: 1
John D'Errico
John D'Errico 2011년 8월 14일
MATLAB has sind for those who insist on degrees.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by