what is cos 30?
조회 수: 30 (최근 30일)
이전 댓글 표시
답변 (2개)
Greig
2015년 2월 21일
MATLAB also has the cosd() function, so you can use cosd(30). Have a look at the trigonometry documentation for other similar function.
댓글 수: 0
SamBro
2015년 2월 21일
MatLab will do all calculations in radians as a default. So if you want to calculate
ans=cos(30);
in degrees you'll need to write:
ans=cos(30*pi/180);
ans=sqrt(3)/2
Otherwise, if you calculate
ans=cos(30);
in MatLab you'll get:
ans=0.1543
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!