Why is there no Angled() function?
7 ビュー (過去 30 日間)
古いコメントを表示
yeah of course I can use angle() * (180/pi) but it seems like MatLab should have angled() included.
Just a thought.
0 件のコメント
回答 (3 件)
Image Analyst
2016 年 2 月 14 日
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?
0 件のコメント
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
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!