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!