Azzera filtri
Azzera filtri

How to convert from polar to complex

51 visualizzazioni (ultimi 30 giorni)
How can I convert such as 5 at an angle of 120 to a complex number ( a+-bi)

Risposta accettata

madhan ravi
madhan ravi il 11 Nov 2018
Modificato: madhan ravi il 11 Nov 2018
5*exp(deg2rad(120)*i) %which is in eulers form r*e^(theta*i)
5 - radius
120 degrees converted to radians
  2 Commenti
Sultan Khoja
Sultan Khoja il 11 Nov 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

Accedi per commentare.

Più risposte (1)

Dr. C V Chandrashekara
Dr. C V Chandrashekara il 5 Nov 2020
thnak you

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by