Borrar filtros
Borrar filtros

How to convert from polar to complex

56 visualizaciones (últimos 30 días)
Sultan Khoja
Sultan Khoja el 11 de Nov. de 2018
Respondida: Dr. C V Chandrashekara el 5 de Nov. de 2020
How can I convert such as 5 at an angle of 120 to a complex number ( a+-bi)

Respuesta aceptada

madhan ravi
madhan ravi el 11 de Nov. de 2018
Editada: madhan ravi el 11 de Nov. de 2018
5*exp(deg2rad(120)*i) %which is in eulers form r*e^(theta*i)
5 - radius
120 degrees converted to radians
  2 comentarios
Sultan Khoja
Sultan Khoja el 11 de Nov. de 2018
I had done the traditional way of converting. the same way of yours a= 5*exp(i*120*pi/180); your code is more professional because you used the in-built function deg2rad.. thanks
madhan ravi
madhan ravi el 12 de Nov. de 2018
Anytime :)

Iniciar sesión para comentar.

Más respuestas (1)

Dr. C V Chandrashekara
Dr. C V Chandrashekara el 5 de Nov. de 2020
thnak you

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by