Why is there no Angled() function?

7 visualizaciones (últimos 30 días)
Devin Ryan
Devin Ryan el 13 de Feb. de 2016
Respondida: Walter Roberson el 14 de Feb. de 2016
yeah of course I can use angle() * (180/pi) but it seems like MatLab should have angled() included.
Just a thought.

Respuestas (3)

Image Analyst
Image Analyst el 14 de Feb. de 2016
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
Star Strider el 13 de Feb. de 2016
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
Walter Roberson el 14 de Feb. de 2016
"Phase angle" is defined in terms of radians. See https://en.wikipedia.org/wiki/Phase_angle

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by