Why is there no Angled() function?
이전 댓글 표시
yeah of course I can use angle() * (180/pi) but it seems like MatLab should have angled() included.
Just a thought.
답변 (3개)
Image Analyst
2016년 2월 14일
1 개 추천
There are "d" versions of the standard trigonometry functions that work with degrees instead of radians, such as sind(), cosd(), atan2d(), etc. Is that what you're looking for?
Star Strider
2016년 2월 13일
You can try:
angled = @(cplx) atan2d(imag(cplx), real(cplx));
a = -1 - 1i;
ph1 = angled(a)
ph2 = angle(a) * 180/pi
ph1 =
-135
ph2 =
-135
Walter Roberson
2016년 2월 14일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Lengths and Angles에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!