I want to express a number as a complex number

2 visualizaciones (últimos 30 días)
aldo angulo
aldo angulo el 2 de Mzo. de 2018
Comentada: aldo angulo el 5 de Mzo. de 2018
I have the following expression in polar form 700 angle of 8.11 ..... I want to express this number in matlab. How can I express it as a single number in either polar or rectangular mode?

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Mzo. de 2018
There is no MATLAB notation for polar form. Some languages have notations such as 700+<8.11 but MATLAB does not.
For radius R (such as 700) and angle A (such as 8.11*pi/180) then the complex representation is
R*(cos(A) + 1i*abs(sin(A)))
This might not work for negative angles, possibly.
  1 comentario
aldo angulo
aldo angulo el 5 de Mzo. de 2018
Thanks alot, it worked fine. As far as negative angles, I just expressed them in positive to avoid mistakes.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Language Fundamentals en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by